From 4b79e330591dfbe99183824926a514dff5302a58 Mon Sep 17 00:00:00 2001 From: Weston Pace Date: Mon, 24 Jun 2024 16:13:20 -0700 Subject: [PATCH] Apply clippy suggestions --- rust/lance-encoding/src/encodings/physical/binary.rs | 2 +- rust/lance-encoding/src/encodings/physical/value.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/rust/lance-encoding/src/encodings/physical/binary.rs b/rust/lance-encoding/src/encodings/physical/binary.rs index b9a122780b..f593b35386 100644 --- a/rust/lance-encoding/src/encodings/physical/binary.rs +++ b/rust/lance-encoding/src/encodings/physical/binary.rs @@ -490,7 +490,7 @@ pub mod tests { use super::get_indices_from_string_arrays; - // #[test_log::test(tokio::test)] + #[test_log::test(tokio::test)] async fn test_utf8() { let field = Field::new("", DataType::Utf8, false); check_round_trip_encoding_random(field).await; diff --git a/rust/lance-encoding/src/encodings/physical/value.rs b/rust/lance-encoding/src/encodings/physical/value.rs index 736cd47202..fb9aa88c73 100644 --- a/rust/lance-encoding/src/encodings/physical/value.rs +++ b/rust/lance-encoding/src/encodings/physical/value.rs @@ -210,8 +210,8 @@ impl PrimitivePageDecoder for ValuePageDecoder { num_rows: u64, _all_null: &mut bool, ) -> Result> { - let mut bytes_to_skip = rows_to_skip as u64 * self.bytes_per_value; - let mut bytes_to_take = num_rows as u64 * self.bytes_per_value; + let mut bytes_to_skip = rows_to_skip * self.bytes_per_value; + let mut bytes_to_take = num_rows * self.bytes_per_value; let mut dest_buffers = vec![BytesMut::with_capacity(bytes_to_take as usize)];