summaryrefslogtreecommitdiffstats
path: root/src/env.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2021-12-10 02:48:10 -0500
committerJesse Luehrs <doy@tozt.net>2021-12-10 02:48:10 -0500
commit8647c6ec2767c06b9612284dbf22bea0ee944f47 (patch)
tree735762589f300c1213dbe5af1921e8f0faced144 /src/env.rs
parent179ac31a1957f01b7ce023743a7cc4f9d520567d (diff)
downloadnbsh-8647c6ec2767c06b9612284dbf22bea0ee944f47.tar.gz
nbsh-8647c6ec2767c06b9612284dbf22bea0ee944f47.zip
clippy
Diffstat (limited to 'src/env.rs')
-rw-r--r--src/env.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/env.rs b/src/env.rs
index b3a38c6..3ff2576 100644
--- a/src/env.rs
+++ b/src/env.rs
@@ -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())