Skip to content

Commit 12720e3

Browse files
committed
add
1 parent c7176f3 commit 12720e3

File tree

4 files changed

+3
-4
lines changed

4 files changed

+3
-4
lines changed

all-pairs-hamming/src/chunked_join.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ where
141141

142142
/// Gets the number of stored sketches.
143143
pub fn num_sketches(&self) -> usize {
144-
self.chunks.get(0).map(|v| v.len()).unwrap_or(0)
144+
self.chunks.first().map(|v| v.len()).unwrap_or(0)
145145
}
146146

147147
/// Gets the memory usage in bytes.

all-pairs-hamming/src/sketch.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
//! Traits of binary short sketches of primitive integer types.
22
use std::ops::Range;
3-
use std::usize;
43

54
use num_traits::int::PrimInt;
65
use num_traits::{FromPrimitive, ToPrimitive};

find-simdoc/src/lsh/minhash.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ pub struct MinHashIter<'a> {
2727
seeder: rand_xoshiro::SplitMix64,
2828
}
2929

30-
impl<'a> Iterator for MinHashIter<'a> {
30+
impl Iterator for MinHashIter<'_> {
3131
type Item = u64;
3232

3333
fn next(&mut self) -> Option<Self::Item> {

find-simdoc/src/lsh/simhash.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ pub struct SimHashIter<'a> {
2929
weights: [f64; 64],
3030
}
3131

32-
impl<'a> Iterator for SimHashIter<'a> {
32+
impl Iterator for SimHashIter<'_> {
3333
type Item = u64;
3434

3535
fn next(&mut self) -> Option<Self::Item> {

0 commit comments

Comments
 (0)