From 2290ac2ec26510b598247c1f4f5b6f47086f2f77 Mon Sep 17 00:00:00 2001 From: Chris Olszewski Date: Tue, 15 Oct 2024 15:19:04 -0400 Subject: [PATCH] chore: fix clippy lint in filter tests (#9257) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ### Description Fixing some clippy lints that only get displayed if compiled with when `test` is enabled. ### Testing Instructions 👀 --- crates/turborepo-lib/src/run/scope/filter.rs | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/crates/turborepo-lib/src/run/scope/filter.rs b/crates/turborepo-lib/src/run/scope/filter.rs index 918afc2a3c8e4..d465b112807a4 100644 --- a/crates/turborepo-lib/src/run/scope/filter.rs +++ b/crates/turborepo-lib/src/run/scope/filter.rs @@ -1104,10 +1104,7 @@ mod test { let packages = resolver.get_filtered_packages(selectors).unwrap(); assert_eq!( - packages - .into_iter() - .map(|(name, _)| name) - .collect::>(), + packages.into_keys().collect::>(), expected.iter().map(|s| PackageName::from(*s)).collect() ); } @@ -1339,10 +1336,7 @@ mod test { let packages = resolver.get_filtered_packages(selectors).unwrap(); assert_eq!( - packages - .into_iter() - .map(|(name, _)| name) - .collect::>(), + packages.into_keys().collect::>(), expected.iter().map(|s| PackageName::from(*s)).collect() ); }