Skip to content

Commit

Permalink
chore: make clippy happy (#3035)
Browse files Browse the repository at this point in the history
  • Loading branch information
BubbleCal and rpgreen authored Oct 22, 2024
1 parent 27b919f commit 536e73d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions rust/lance-index/src/scalar/inverted/index.rs
Original file line number Diff line number Diff line change
Expand Up @@ -605,8 +605,8 @@ impl PostingListBuilder {
}

pub fn size(&self) -> usize {
size_of::<u64>() * self.row_ids.len()
+ size_of::<f32>() * self.frequencies.len()
std::mem::size_of::<u64>() * self.row_ids.len()
+ std::mem::size_of::<f32>() * self.frequencies.len()
+ self
.positions
.as_ref()
Expand Down Expand Up @@ -788,7 +788,8 @@ impl PositionBuilder {
}

pub fn size(&self) -> usize {
size_of::<i32>() * self.positions.len() + size_of::<usize>() * self.offsets.len()
std::mem::size_of::<i32>() * self.positions.len()
+ std::mem::size_of::<usize>() * self.offsets.len()
}

pub fn total_len(&self) -> usize {
Expand Down

0 comments on commit 536e73d

Please sign in to comment.