mirror of
https://github.com/aljazceru/turso.git
synced 2026-02-23 17:05:36 +01:00
clippy + fmt
This commit is contained in:
@@ -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))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user