From b1240772ba9bc9c670b52df5d4fa4642ff5b9e3c Mon Sep 17 00:00:00 2001 From: "aravind.mallapureddy" Date: Thu, 14 Dec 2023 22:45:19 +0530 Subject: [PATCH] fixed clippy warnings --- crates/nix_health/src/check/trusted_users.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/crates/nix_health/src/check/trusted_users.rs b/crates/nix_health/src/check/trusted_users.rs index fccc0a15..5580349d 100644 --- a/crates/nix_health/src/check/trusted_users.rs +++ b/crates/nix_health/src/check/trusted_users.rs @@ -16,9 +16,7 @@ impl Checkable for TrustedUsers { let val = &nix_info.nix_config.trusted_users.value; let current_user = &nix_info.nix_env.current_user; let user_groups = &nix_info.nix_env.current_user_groups; - let (groups, users): (_, Vec<_>) = val - .into_iter() - .partition(|x| x.contains(&String::from("@"))); + let (groups, users): (_, Vec<_>) = val.iter().partition(|x| x.contains(&String::from("@"))); let result = if users.contains(¤t_user) || groups .into_iter()