@@ -39,7 +39,7 @@ impl<'a, V> From<std::slice::Iter<'a, V>> for StackItem<'a, V> {
39
39
}
40
40
}
41
41
42
- impl < ' a , V > From < std:: vec:: IntoIter < V > > for StackItem < ' a , V > {
42
+ impl < V > From < std:: vec:: IntoIter < V > > for StackItem < ' _ , V > {
43
43
fn from ( value : std:: vec:: IntoIter < V > ) -> Self {
44
44
Self :: IntoIter ( value)
45
45
}
@@ -81,13 +81,9 @@ impl<V: PartialEq> PartialEq<V> for IterItem<'_, V> {
81
81
fn eq ( & self , other : & V ) -> bool {
82
82
self . as_ref ( ) . eq ( other)
83
83
}
84
-
85
- fn ne ( & self , other : & V ) -> bool {
86
- self . as_ref ( ) . ne ( other)
87
- }
88
84
}
89
85
90
- impl < ' a , V > From < V > for IterItem < ' a , V > {
86
+ impl < V > From < V > for IterItem < ' _ , V > {
91
87
fn from ( value : V ) -> Self {
92
88
Self :: Owned ( value)
93
89
}
@@ -140,6 +136,7 @@ where
140
136
}
141
137
IterItem :: Owned ( node) => {
142
138
stack. push ( StackItem :: from (
139
+ #[ allow( clippy:: unnecessary_to_owned) ]
143
140
node. pointers [ node. index_for_bit_pos ( idx) ..]
144
141
. to_vec ( )
145
142
. into_iter ( ) ,
@@ -173,6 +170,7 @@ where
173
170
conf,
174
171
store,
175
172
stack,
173
+ #[ allow( clippy:: unnecessary_to_owned) ]
176
174
current : values[ offset..] . to_vec ( ) . into_iter ( ) . into ( ) ,
177
175
} ) ,
178
176
None => Err ( Error :: StartKeyNotFound ) ,
0 commit comments