From 5881ee71d616fac7caeed6e2e500449b02219d13 Mon Sep 17 00:00:00 2001 From: pedrocarlo Date: Sat, 30 Aug 2025 12:20:19 -0300 Subject: [PATCH] clippy --- simulator/generation/property.rs | 5 ++--- simulator/profiles/mod.rs | 1 + simulator/runner/cli.rs | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/simulator/generation/property.rs b/simulator/generation/property.rs index ab11a2d0e..7129f7989 100644 --- a/simulator/generation/property.rs +++ b/simulator/generation/property.rs @@ -972,7 +972,7 @@ impl Property { } fn assert_all_table_values(tables: &[String]) -> impl Iterator + use<'_> { - let checks = tables.iter().flat_map(|table| { + tables.iter().flat_map(|table| { let select = Interaction::Query(Query::Select(Select::simple( table.clone(), Predicate::true_(), @@ -1026,8 +1026,7 @@ fn assert_all_table_values(tables: &[String]) -> impl Iterator Self { Self { diff --git a/simulator/runner/cli.rs b/simulator/runner/cli.rs index bfd71e8c9..daa00be38 100644 --- a/simulator/runner/cli.rs +++ b/simulator/runner/cli.rs @@ -252,7 +252,7 @@ impl TypedValueParser for ProfileTypeParser { use strum::VariantNames; Some(Box::new( Self::Value::VARIANTS - .into_iter() + .iter() .map(|variant| { // Custom variant should be listed as a Custom path if variant.eq_ignore_ascii_case("custom") { @@ -261,7 +261,7 @@ impl TypedValueParser for ProfileTypeParser { variant } }) - .map(|s| PossibleValue::new(s)), + .map(PossibleValue::new), )) } }