1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-08-04 15:07:47 +00:00

refactor/polish ~ fix cargo clippy complaints ('better' ref use/toplevel_ref_arg)

This commit is contained in:
Roy Ivy III 2019-12-27 14:59:28 -06:00
parent 58779be6bb
commit 37c9b0e331

View file

@ -282,7 +282,7 @@ pub fn uumain(args: Vec<String>) -> i32 {
);
return 1;
}
let ref formatstr = args[1];
let formatstr = &args[1];
if formatstr == "--help" {
print!("{} {}", LONGHELP_LEAD, LONGHELP_BODY);