1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 11:37:44 +00:00

chgrp: fix clippy and spell-check warnings

This commit is contained in:
Terts Diepraam 2021-06-11 17:24:12 +02:00
parent cff75f242a
commit ddb196dd1d
2 changed files with 3 additions and 3 deletions

View file

@ -251,7 +251,7 @@ pub fn uumain(args: impl uucore::Args) -> i32 {
} }
} else { } else {
let group = matches.value_of(options::ARG_GROUP).unwrap_or_default(); let group = matches.value_of(options::ARG_GROUP).unwrap_or_default();
match entries::grp2gid(&group) { match entries::grp2gid(group) {
Ok(g) => { Ok(g) => {
dest_gid = g; dest_gid = g;
} }

View file

@ -1,4 +1,4 @@
// spell-checker:ignore (words) nosuchgroup // spell-checker:ignore (words) nosuchgroup groupname
use crate::common::util::*; use crate::common::util::*;
use rust_users::*; use rust_users::*;
@ -10,7 +10,7 @@ fn test_invalid_option() {
static DIR: &str = "/tmp"; 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] #[test]
fn test_help() { fn test_help() {
new_ucmd!() new_ucmd!()