mirror of
https://github.com/quickwit-oss/tantivy.git
synced 2026-01-06 17:22:54 +00:00
fix clippy (#1725)
* fix clippy * fix clippy fastfield codecs * fix clippy bitpacker * fix clippy common * fix clippy stacker * fix clippy sstable * fmt
This commit is contained in:
@@ -69,7 +69,7 @@ impl TermInfoBlockMeta {
|
||||
let posting_end_addr = posting_start_addr + num_bits;
|
||||
let positions_start_addr = posting_start_addr + self.postings_offset_nbits as usize;
|
||||
// the position_end is the positions_start of the next term info.
|
||||
let positions_end_addr = positions_start_addr + num_bits as usize;
|
||||
let positions_end_addr = positions_start_addr + num_bits;
|
||||
|
||||
let doc_freq_addr = positions_start_addr + self.positions_offset_nbits as usize;
|
||||
|
||||
|
||||
@@ -80,7 +80,7 @@ where W: Write
|
||||
self.term_info_store_writer
|
||||
.serialize(&mut counting_writer)?;
|
||||
let footer_size = counting_writer.written_bytes();
|
||||
(footer_size as u64).serialize(&mut counting_writer)?;
|
||||
footer_size.serialize(&mut counting_writer)?;
|
||||
}
|
||||
Ok(file)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user