clippy + fmt

This commit is contained in:
alpaylan
2025-07-15 09:57:55 -04:00
parent 9a921ed4b9
commit 9347e43dfc
2 changed files with 4 additions and 3 deletions

View File

@@ -43,7 +43,8 @@ where
T: ArbitrarySizedFrom<A>,
{
fn arbitrary_sized_from<R: rand::Rng>(rng: &mut R, t: A, size: usize) -> Self {
rng.gen_bool(0.5).then_some(T::arbitrary_sized_from(rng, t, size))
rng.gen_bool(0.5)
.then_some(T::arbitrary_sized_from(rng, t, size))
}
}

View File

@@ -365,7 +365,7 @@ impl Shadow for SelectInner {
.all(|col| matches!(col, ResultColumn::Expr(_))));
// If `WHERE` is false, just return an empty table
if !self.where_clause.test(&vec![], &Table::anonymous(vec![])) {
if !self.where_clause.test(&[], &Table::anonymous(vec![])) {
return Ok(JoinTable {
tables: Vec::new(),
rows: Vec::new(),
@@ -377,7 +377,7 @@ impl Shadow for SelectInner {
for col in &self.columns {
match col {
ResultColumn::Expr(expr) => {
let value = expr.eval(&vec![], &Table::anonymous(vec![]));
let value = expr.eval(&[], &Table::anonymous(vec![]));
if let Some(value) = value {
row.push(value);
} else {