From 7133efd0a5f711a948264793d3664423862772dd Mon Sep 17 00:00:00 2001 From: Roy Ivy III Date: Wed, 10 Nov 2021 15:59:41 -0600 Subject: [PATCH] tests ~ fix `cargo clippy` complaint (clippy::needless_return) --- tests/common/util.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/common/util.rs b/tests/common/util.rs index cfde5f229..ffca7d9b2 100644 --- a/tests/common/util.rs +++ b/tests/common/util.rs @@ -1166,13 +1166,13 @@ pub fn host_name_for(util_name: &str) -> Cow { { // 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