Skip to content

Commit

Permalink
cargo clippy
Browse files Browse the repository at this point in the history
Signed-off-by: Mingzhuo Yin <[email protected]>
  • Loading branch information
silver-ymz committed Jan 7, 2025
1 parent ac59bf8 commit f86f841
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/segment/posting/reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,8 @@ impl PostingCursor {
let term_meta: &PostingTermMetaData = term_meta_guard.as_ref();
let block_page_reader = VirtualPageReader::new(index, term_meta.block_data_blkno);
let remain_block_cnt = term_meta.block_count;
let unfulled_docid = term_meta.unfulled_docid[..term_meta.unfulled_doc_cnt as usize]
.try_into()
.unwrap();
let unfulled_freq = term_meta.unfulled_freq[..term_meta.unfulled_doc_cnt as usize]
.try_into()
.unwrap();
let unfulled_docid = term_meta.unfulled_docid[..term_meta.unfulled_doc_cnt as usize].into();
let unfulled_freq = term_meta.unfulled_freq[..term_meta.unfulled_doc_cnt as usize].into();

let mut this = Self {
index,
Expand Down

0 comments on commit f86f841

Please sign in to comment.