From 2cdfe990993b1c172e74feb4c7193d06046fe14a Mon Sep 17 00:00:00 2001 From: Sridhar Ratnakumar Date: Mon, 6 Jan 2025 15:34:44 -0500 Subject: [PATCH] health/shell: Use HashMap for 'unmanaged' too --- crates/omnix-health/src/check/shell.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/omnix-health/src/check/shell.rs b/crates/omnix-health/src/check/shell.rs index 10fc4329..b9724f21 100644 --- a/crates/omnix-health/src/check/shell.rs +++ b/crates/omnix-health/src/check/shell.rs @@ -46,12 +46,12 @@ impl Checkable for ShellCheck { // Iterate over each dotfile and check if it is managed by Nix let mut managed: HashMap<&'static str, PathBuf> = HashMap::new(); - let mut unmanaged: Vec = Vec::new(); + let mut unmanaged: HashMap<&'static str, PathBuf> = HashMap::new(); for (name, path) in user_shell_env.dotfiles { if super::direnv::is_path_in_nix_store(&path) { managed.insert(name, path.clone()); } else { - unmanaged.push(path.clone()); + unmanaged.insert(name, path.clone()); } }