From f86f841ef64b86ff195751876414f7ebecb267fa Mon Sep 17 00:00:00 2001 From: Mingzhuo Yin Date: Tue, 7 Jan 2025 16:58:48 +0800 Subject: [PATCH] cargo clippy Signed-off-by: Mingzhuo Yin --- src/segment/posting/reader.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/segment/posting/reader.rs b/src/segment/posting/reader.rs index 4009474..6517516 100644 --- a/src/segment/posting/reader.rs +++ b/src/segment/posting/reader.rs @@ -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,