fix fmt and clippy

This commit is contained in:
bit-aloo
2025-08-12 16:36:22 +05:30
parent 71525c90e5
commit a545995b44
2 changed files with 7 additions and 7 deletions

View File

@@ -331,7 +331,7 @@ pub enum ScalarFunc {
BinRecordJsonObject,
Attach,
Detach,
Unlikely
Unlikely,
}
impl ScalarFunc {
@@ -459,7 +459,7 @@ impl Display for ScalarFunc {
Self::BinRecordJsonObject => "bin_record_json_object".to_string(),
Self::Attach => "attach".to_string(),
Self::Detach => "detach".to_string(),
Self::Unlikely => "unlikely".to_string()
Self::Unlikely => "unlikely".to_string(),
};
write!(f, "{str}")
}

View File

@@ -10067,21 +10067,21 @@ mod tests {
let input = Value::build_text("turso");
let expected = Value::build_text("turso");
assert_eq!(input.exec_unlikely(), expected);
let input = Value::Integer(42);
let expected = Value::Integer(42);
assert_eq!(input.exec_unlikely(), expected);
let input = Value::Float(99.99);
let expected = Value::Float(99.99);
assert_eq!(input.exec_unlikely(), expected);
let input = Value::Null;
let expected = Value::Null;
assert_eq!(input.exec_unlikely(), expected);
let input = Value::Blob(vec![10, 20, 30, 40]);
let expected = Value::Blob(vec![10, 20, 30, 40]);
assert_eq!(input.exec_unlikely(), expected);
}
}
}