File tree Expand file tree Collapse file tree 4 files changed +3
-4
lines changed
Expand file tree Collapse file tree 4 files changed +3
-4
lines changed Original file line number Diff line number Diff 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.
Original file line number Diff line number Diff line change 11//! Traits of binary short sketches of primitive integer types.
22use std:: ops:: Range ;
3- use std:: usize;
43
54use num_traits:: int:: PrimInt ;
65use num_traits:: { FromPrimitive , ToPrimitive } ;
Original file line number Diff line number Diff 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 > {
Original file line number Diff line number Diff 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 > {
You can’t perform that action at this time.
0 commit comments