Skip to content

Commit

Permalink
fixed clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
aravind.mallapureddy committed Dec 14, 2023
1 parent 7a90f81 commit b124077
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions crates/nix_health/src/check/trusted_users.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(&current_user)
|| groups
.into_iter()
Expand Down

0 comments on commit b124077

Please sign in to comment.