From 536e73d9b850ac366b46606b42a496b56c29fa98 Mon Sep 17 00:00:00 2001 From: BubbleCal Date: Tue, 22 Oct 2024 23:13:46 +0800 Subject: [PATCH] chore: make clippy happy (#3035) fix this [check](https://github.com/lancedb/lancedb/actions/runs/11455252884/job/31870908428?pr=1762) Signed-off-by: BubbleCal Co-authored-by: Ryan Green --- rust/lance-index/src/scalar/inverted/index.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/rust/lance-index/src/scalar/inverted/index.rs b/rust/lance-index/src/scalar/inverted/index.rs index e0b62db96c..1c85bcf234 100644 --- a/rust/lance-index/src/scalar/inverted/index.rs +++ b/rust/lance-index/src/scalar/inverted/index.rs @@ -605,8 +605,8 @@ impl PostingListBuilder { } pub fn size(&self) -> usize { - size_of::() * self.row_ids.len() - + size_of::() * self.frequencies.len() + std::mem::size_of::() * self.row_ids.len() + + std::mem::size_of::() * self.frequencies.len() + self .positions .as_ref() @@ -788,7 +788,8 @@ impl PositionBuilder { } pub fn size(&self) -> usize { - size_of::() * self.positions.len() + size_of::() * self.offsets.len() + std::mem::size_of::() * self.positions.len() + + std::mem::size_of::() * self.offsets.len() } pub fn total_len(&self) -> usize {