Skip to content

Commit

Permalink
Apply clippy suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
westonpace committed Jun 24, 2024
1 parent 1ff92b7 commit 4b79e33
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion rust/lance-encoding/src/encodings/physical/binary.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions rust/lance-encoding/src/encodings/physical/value.rs
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,8 @@ impl PrimitivePageDecoder for ValuePageDecoder {
num_rows: u64,
_all_null: &mut bool,
) -> Result<Vec<BytesMut>> {
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)];

Expand Down

0 comments on commit 4b79e33

Please sign in to comment.