From 3b11d127756e875dc19b76bf6b16f55cfd1cfd0c Mon Sep 17 00:00:00 2001 From: Eric Gonzalez Date: Tue, 26 Nov 2024 23:58:21 -0700 Subject: [PATCH] correct cast --- storage/database/src/backend/tests.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storage/database/src/backend/tests.rs b/storage/database/src/backend/tests.rs index b97693f7..4fc301ff 100644 --- a/storage/database/src/backend/tests.rs +++ b/storage/database/src/backend/tests.rs @@ -360,7 +360,7 @@ fn tables_are_sorted() { // Insert range, assert each new // number inserted is the minimum `last()` value. for key in RANGE { - table.put(&key, &(key as u64)).unwrap(); + table.put(&key, &u64::from(key)).unwrap(); table.contains(&key).unwrap(); let (first, _) = table.first().unwrap(); let (last, _) = table.last().unwrap();