From a545995b44566a95f28c47750c0244c84e511e1e Mon Sep 17 00:00:00 2001 From: bit-aloo Date: Tue, 12 Aug 2025 16:36:22 +0530 Subject: [PATCH] fix fmt and clippy --- core/function.rs | 4 ++-- core/vdbe/execute.rs | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/core/function.rs b/core/function.rs index 056054cec..e83879165 100644 --- a/core/function.rs +++ b/core/function.rs @@ -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}") } diff --git a/core/vdbe/execute.rs b/core/vdbe/execute.rs index eccb1f111..08e0cadbd 100644 --- a/core/vdbe/execute.rs +++ b/core/vdbe/execute.rs @@ -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); - } + } }