mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-09-17 04:06:18 +00:00
fix various clippy issues
This commit is contained in:
parent
52c6593ef5
commit
caf984bd55
4 changed files with 7 additions and 6 deletions
|
@ -39,7 +39,6 @@ fn test_normal_compare_env() {
|
|||
let whoami = whoami();
|
||||
if whoami == "nobody" {
|
||||
println!("test skipped:");
|
||||
return;
|
||||
} else if !is_ci() {
|
||||
new_ucmd!().succeeds().stdout_is(format!("{}\n", whoami));
|
||||
} else {
|
||||
|
|
|
@ -1065,7 +1065,7 @@ pub fn whoami() -> String {
|
|||
|
||||
/// Add prefix 'g' for `util_name` if not on linux
|
||||
#[cfg(unix)]
|
||||
pub fn host_name_for<'a>(util_name: &'a str) -> Cow<'a, str> {
|
||||
pub fn host_name_for(util_name: &str) -> Cow<str> {
|
||||
// In some environments, e.g. macOS/freebsd, the GNU coreutils are prefixed with "g"
|
||||
// to not interfere with the BSD counterparts already in `$PATH`.
|
||||
#[cfg(not(target_os = "linux"))]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue