diff options
author | Jesse Luehrs <doy@tozt.net> | 2021-12-10 02:48:10 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2021-12-10 02:48:10 -0500 |
commit | 8647c6ec2767c06b9612284dbf22bea0ee944f47 (patch) | |
tree | 735762589f300c1213dbe5af1921e8f0faced144 /src/env.rs | |
parent | 179ac31a1957f01b7ce023743a7cc4f9d520567d (diff) | |
download | nbsh-8647c6ec2767c06b9612284dbf22bea0ee944f47.tar.gz nbsh-8647c6ec2767c06b9612284dbf22bea0ee944f47.zip |
clippy
Diffstat (limited to 'src/env.rs')
-rw-r--r-- | src/env.rs | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -15,6 +15,7 @@ pub fn user() -> anyhow::Result<String> { .into_owned()) } +#[allow(clippy::unnecessary_wraps)] pub fn prompt_char() -> anyhow::Result<String> { if users::get_current_uid() == 0 { Ok("#".into()) |