From 46ab14738d71c8eef0dd0f1a27b1323518e15758 Mon Sep 17 00:00:00 2001 From: davidemazzocchi Date: Tue, 13 Jan 2026 07:26:13 +0100 Subject: [PATCH] fix: update condition types after u64 deprecation from rusqlite update --- 01.workspace/heave/src/str/condition.rs | 4 ++-- 01.workspace/heave/src/str/filter.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/01.workspace/heave/src/str/condition.rs b/01.workspace/heave/src/str/condition.rs index 7615419..742b65e 100644 --- a/01.workspace/heave/src/str/condition.rs +++ b/01.workspace/heave/src/str/condition.rs @@ -12,6 +12,6 @@ pub enum E<'a> { SignedInt(i64), /// A text value (`&str`). Text(&'a str), - /// An unsigned integer (`u64`), stored as `i64` for SQLite compatibility. - UnsignedInt(i64), + /// An unsigned integer (`u32`). + UnsignedInt(u32), } diff --git a/01.workspace/heave/src/str/filter.rs b/01.workspace/heave/src/str/filter.rs index 5f34b98..b45ca0f 100644 --- a/01.workspace/heave/src/str/filter.rs +++ b/01.workspace/heave/src/str/filter.rs @@ -66,12 +66,12 @@ impl<'a> Filter<'a> { )); self } - /// Adds an unsigned integer (`u64`) condition to the filter. + /// Adds an unsigned integer (`u32`) condition to the filter. pub fn with_unsigned_int( mut self, attribute_name: &str, comparison: Comparison, - value: i64, + value: u32, ) -> Self { self.conditions.push(( attribute_name.to_string(),