Skip to content

Commit 27f6216

Browse files
lint
1 parent c11f64f commit 27f6216

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

crates/bpe/src/byte_pair_encoding.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -588,7 +588,6 @@ mod data {
588588
if bpes.iter().all(|(bpe, len)| {
589589
let mut seen = HashSet::with_capacity(*len);
590590
(0..*len)
591-
.into_iter()
592591
.all(|i| seen.insert(hash_bytes_with_factor(&bpe._decode_native(&[i]), factor)))
593592
}) {
594593
println!("hash factor: {factor}");
@@ -621,7 +620,7 @@ mod data {
621620
let abs_path = current_dir.parent().unwrap().parent().unwrap();
622621
let file = File::create(abs_path.join(data_file)).unwrap();
623622
let mut serializer = rmp_serde::Serializer::new(file);
624-
BytePairEncoding::from_tiktoken(&dict, num_tokens)
623+
BytePairEncoding::from_tiktoken(dict, num_tokens)
625624
.serialize(&mut serializer)
626625
.unwrap();
627626
}

crates/geo_filters/src/config/bitchunks.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,9 +217,8 @@ pub(crate) fn count_ones_from_bitchunks<T: IsBucketType>(
217217
let mut total = take_ref(&mut ones, max_msb_len - 1).count();
218218
let smallest_msb = ones
219219
.next()
220-
.map(|bucket| {
220+
.inspect(|_| {
221221
total += 1;
222-
bucket
223222
})
224223
.unwrap_or_default();
225224

0 commit comments

Comments
 (0)