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:
PSeitz
2022-12-20 07:30:06 +01:00
committed by GitHub
parent a2cf6a79b4
commit f9171a3981
42 changed files with 81 additions and 102 deletions

View File

@@ -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;

View File

@@ -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)
}