tests ~ fix cargo clippy complaint (clippy::needless_return)

This commit is contained in:
Roy Ivy III 2021-11-10 15:59:41 -06:00
parent 047c17dd31
commit 7133efd0a5

View file

@ -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