Clippy
This commit is contained in:
parent
26ac58b2bd
commit
a264df22fa
|
|
@ -20,6 +20,7 @@ use std::os::raw::{c_char, c_int, c_uint, c_ulong};
|
||||||
clippy::useless_transmute,
|
clippy::useless_transmute,
|
||||||
clippy::derive_partial_eq_without_eq,
|
clippy::derive_partial_eq_without_eq,
|
||||||
clippy::ptr_offset_with_cast,
|
clippy::ptr_offset_with_cast,
|
||||||
|
unpredictable_function_pointer_comparisons, // TODO: remove Eq/PartialEq in v5
|
||||||
dead_code
|
dead_code
|
||||||
)]
|
)]
|
||||||
mod generated {
|
mod generated {
|
||||||
|
|
|
||||||
|
|
@ -192,14 +192,14 @@ impl<T: Stackable> StackRef<T> {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[must_use]
|
#[must_use]
|
||||||
pub fn iter(&self) -> Iter<T> {
|
pub fn iter(&self) -> Iter<'_, T> {
|
||||||
Iter {
|
Iter {
|
||||||
stack: self,
|
stack: self,
|
||||||
idxs: 0..self.len(),
|
idxs: 0..self.len(),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn iter_mut(&mut self) -> IterMut<T> {
|
pub fn iter_mut(&mut self) -> IterMut<'_, T> {
|
||||||
IterMut {
|
IterMut {
|
||||||
idxs: 0..self.len(),
|
idxs: 0..self.len(),
|
||||||
stack: self,
|
stack: self,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue