This commit is contained in:
pedrocarlo
2025-08-30 12:20:19 -03:00
parent 961c0cd282
commit 5881ee71d6
3 changed files with 5 additions and 5 deletions

View File

@@ -972,7 +972,7 @@ impl Property {
}
fn assert_all_table_values(tables: &[String]) -> impl Iterator<Item = Interaction> + 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<Item = Interactio
}),
});
[select, assertion].into_iter()
});
checks
})
}
#[derive(Debug)]

View File

@@ -31,6 +31,7 @@ pub struct Profile {
pub query: QueryProfile,
}
#[allow(clippy::derivable_impls)]
impl Default for Profile {
fn default() -> Self {
Self {

View File

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