mirror of
https://github.com/uutils/coreutils
synced 2024-11-16 09:48:03 +00:00
tests ~ fix cargo clippy
complaint (clippy::needless_return)
This commit is contained in:
parent
047c17dd31
commit
7133efd0a5
1 changed files with 3 additions and 3 deletions
|
@ -1166,13 +1166,13 @@ pub fn host_name_for(util_name: &str) -> Cow<str> {
|
|||
{
|
||||
// make call to `host_name_for` idempotent
|
||||
if util_name.starts_with('g') && util_name != "groups" {
|
||||
return util_name.into();
|
||||
util_name.into()
|
||||
} else {
|
||||
return format!("g{}", util_name).into();
|
||||
format!("g{}", util_name).into()
|
||||
}
|
||||
}
|
||||
#[cfg(target_os = "linux")]
|
||||
return util_name.into();
|
||||
util_name.into()
|
||||
}
|
||||
|
||||
// GNU coreutils version 8.32 is the reference version since it is the latest version and the
|
||||
|
|
Loading…
Reference in a new issue