Skip to content

Commit

Permalink
Resolve clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Ortham committed Apr 28, 2024
1 parent 5684a78 commit 974e16e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/load_order/mutable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -442,8 +442,7 @@ fn get_plugin_to_insert_at<T: MutableLoadOrder + ?Sized>(
}

fn are_plugin_names_unique(plugin_names: &[&str]) -> bool {
let unique_plugin_names: HashSet<_> =
plugin_names.par_iter().map(|s| UniCase::new(s)).collect();
let unique_plugin_names: HashSet<_> = plugin_names.par_iter().map(UniCase::new).collect();

unique_plugin_names.len() == plugin_names.len()
}
Expand Down
2 changes: 1 addition & 1 deletion src/load_order/textfile_based.rs
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ impl WritableLoadOrder for TextfileBasedLoadOrder {

let set: HashSet<_> = plugin_names
.iter()
.map(|name| UniCase::new(trim_dot_ghost(&name)))
.map(|name| UniCase::new(trim_dot_ghost(name)))
.collect();

let all_plugins_listed = self
Expand Down

0 comments on commit 974e16e

Please sign in to comment.