Skip to content

Commit

Permalink
chore: fix clippy lint in filter tests (#9257)
Browse files Browse the repository at this point in the history
### Description

Fixing some clippy lints that only get displayed if compiled with when
`test` is enabled.

### Testing Instructions

👀
  • Loading branch information
chris-olszewski authored Oct 15, 2024
1 parent b5fefe8 commit 2290ac2
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions crates/turborepo-lib/src/run/scope/filter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1104,10 +1104,7 @@ mod test {
let packages = resolver.get_filtered_packages(selectors).unwrap();

assert_eq!(
packages
.into_iter()
.map(|(name, _)| name)
.collect::<HashSet<_>>(),
packages.into_keys().collect::<HashSet<_>>(),
expected.iter().map(|s| PackageName::from(*s)).collect()
);
}
Expand Down Expand Up @@ -1339,10 +1336,7 @@ mod test {

let packages = resolver.get_filtered_packages(selectors).unwrap();
assert_eq!(
packages
.into_iter()
.map(|(name, _)| name)
.collect::<HashSet<_>>(),
packages.into_keys().collect::<HashSet<_>>(),
expected.iter().map(|s| PackageName::from(*s)).collect()
);
}
Expand Down

0 comments on commit 2290ac2

Please sign in to comment.