From ddb196dd1d8ee141d5bdc2dd48c6b4a354a84296 Mon Sep 17 00:00:00 2001 From: Terts Diepraam Date: Fri, 11 Jun 2021 17:24:12 +0200 Subject: [PATCH] chgrp: fix clippy and spell-check warnings --- src/uu/chgrp/src/chgrp.rs | 2 +- tests/by-util/test_chgrp.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/uu/chgrp/src/chgrp.rs b/src/uu/chgrp/src/chgrp.rs index c0dc2daf3..454a0386c 100644 --- a/src/uu/chgrp/src/chgrp.rs +++ b/src/uu/chgrp/src/chgrp.rs @@ -251,7 +251,7 @@ pub fn uumain(args: impl uucore::Args) -> i32 { } } else { let group = matches.value_of(options::ARG_GROUP).unwrap_or_default(); - match entries::grp2gid(&group) { + match entries::grp2gid(group) { Ok(g) => { dest_gid = g; } diff --git a/tests/by-util/test_chgrp.rs b/tests/by-util/test_chgrp.rs index d886d674b..762e922c4 100644 --- a/tests/by-util/test_chgrp.rs +++ b/tests/by-util/test_chgrp.rs @@ -1,4 +1,4 @@ -// spell-checker:ignore (words) nosuchgroup +// spell-checker:ignore (words) nosuchgroup groupname use crate::common::util::*; use rust_users::*; @@ -10,7 +10,7 @@ fn test_invalid_option() { static DIR: &str = "/tmp"; -// we should always get both arguments, regardless of whether --refernce was used +// we should always get both arguments, regardless of whether --reference was used #[test] fn test_help() { new_ucmd!()