mirror of
https://github.com/aljazceru/turso.git
synced 2026-02-07 17:24:24 +01:00
clippy
This commit is contained in:
@@ -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)]
|
||||
|
||||
@@ -31,6 +31,7 @@ pub struct Profile {
|
||||
pub query: QueryProfile,
|
||||
}
|
||||
|
||||
#[allow(clippy::derivable_impls)]
|
||||
impl Default for Profile {
|
||||
fn default() -> Self {
|
||||
Self {
|
||||
|
||||
@@ -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),
|
||||
))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user