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), )) } }