Skip to content

Commit

Permalink
health/shell: Use HashMap for 'unmanaged' too
Browse files Browse the repository at this point in the history
  • Loading branch information
srid committed Jan 6, 2025
1 parent bd7af82 commit 2cdfe99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/omnix-health/src/check/shell.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<PathBuf> = 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());
}
}

Expand Down

0 comments on commit 2cdfe99

Please sign in to comment.