This commit is contained in:
Kornel 2025-08-26 11:59:03 +01:00 committed by Rushil Mehra
parent 26ac58b2bd
commit a264df22fa
2 changed files with 3 additions and 2 deletions

View File

@ -20,6 +20,7 @@ use std::os::raw::{c_char, c_int, c_uint, c_ulong};
clippy::useless_transmute,
clippy::derive_partial_eq_without_eq,
clippy::ptr_offset_with_cast,
unpredictable_function_pointer_comparisons, // TODO: remove Eq/PartialEq in v5
dead_code
)]
mod generated {

View File

@ -192,14 +192,14 @@ impl<T: Stackable> StackRef<T> {
}
#[must_use]
pub fn iter(&self) -> Iter<T> {
pub fn iter(&self) -> Iter<'_, T> {
Iter {
stack: self,
idxs: 0..self.len(),
}
}
pub fn iter_mut(&mut self) -> IterMut<T> {
pub fn iter_mut(&mut self) -> IterMut<'_, T> {
IterMut {
idxs: 0..self.len(),
stack: self,