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