Skip to content

Commit

Permalink
Merge pull request #353 from waywardmonkeys/fix-clippy
Browse files Browse the repository at this point in the history
Fix `clippy::needless_borrows_for_generic_args` lints
  • Loading branch information
RickyDaMa authored Jul 25, 2024
2 parents 22156ea + dff71b9 commit 64615c0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ mod tests {

fn file_name(name: &str, prefix: &str, suffix: &str) -> String {
let container: HashSet<String> = HashSet::new();
user_name_to_file_name(&Name::new_raw(name), prefix, suffix, |name| {
user_name_to_file_name(Name::new_raw(name), prefix, suffix, |name| {
!container.contains(name)
})
.to_string_lossy()
Expand Down Expand Up @@ -292,7 +292,7 @@ mod tests {
let mut container = HashSet::new();
let mut existing = HashSet::new();
for name in ["Ab", "a_b"] {
let path = user_name_to_file_name(&Name::new_raw(name), "", ".glif", |name| {
let path = user_name_to_file_name(Name::new_raw(name), "", ".glif", |name| {
!existing.contains(name)
});
existing.insert(path.to_string_lossy().to_string().to_lowercase());
Expand All @@ -311,7 +311,7 @@ mod tests {
let mut container = HashSet::new();
let mut existing = HashSet::new();
for name in ["A".repeat(300), "a_".repeat(150)] {
let path = user_name_to_file_name(&Name::new_raw(&name), "", ".glif", |name| {
let path = user_name_to_file_name(Name::new_raw(&name), "", ".glif", |name| {
!existing.contains(name)
});
existing.insert(path.to_string_lossy().to_string().to_lowercase());
Expand Down

0 comments on commit 64615c0

Please sign in to comment.