Skip to content

Commit

Permalink
Address clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
westonpace committed Dec 5, 2024
1 parent 8eb5a38 commit 2982346
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rust/lance-encoding/src/encodings/logical/list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1370,7 +1370,7 @@ impl<'a> StructuralListSchedulingJob<'a> {
}
}

impl<'a> StructuralSchedulingJob for StructuralListSchedulingJob<'a> {
impl StructuralSchedulingJob for StructuralListSchedulingJob<'_> {
fn schedule_next(
&mut self,
context: &mut SchedulerContext,
Expand Down
3 changes: 2 additions & 1 deletion rust/lance-encoding/src/encodings/logical/primitive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2132,7 +2132,7 @@ impl PrimitiveStructuralEncoder {
// Compress blocks of levels (sized according to the chunks)
let mut buffers = Vec::with_capacity(chunks.len());
let mut values_counter = 0;
for (chunk_idx, chunk) in chunks.into_iter().enumerate() {
for (chunk_idx, chunk) in chunks.iter().enumerate() {
let chunk_num_values = chunk.num_values(values_counter, num_values);
values_counter += chunk_num_values;
let mut chunk_levels = levels.slice_next(chunk_num_values as usize);
Expand Down Expand Up @@ -2219,6 +2219,7 @@ impl PrimitiveStructuralEncoder {
})
}

#[allow(clippy::too_many_arguments)]
fn encode_miniblock(
column_idx: u32,
field: &Field,
Expand Down

0 comments on commit 2982346

Please sign in to comment.