diff --git a/boring-sys/src/lib.rs b/boring-sys/src/lib.rs index 8463fe1f..6f027919 100644 --- a/boring-sys/src/lib.rs +++ b/boring-sys/src/lib.rs @@ -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 { diff --git a/boring/src/stack.rs b/boring/src/stack.rs index 67958e15..5a95d98c 100644 --- a/boring/src/stack.rs +++ b/boring/src/stack.rs @@ -192,14 +192,14 @@ impl StackRef { } #[must_use] - pub fn iter(&self) -> Iter { + pub fn iter(&self) -> Iter<'_, T> { Iter { stack: self, idxs: 0..self.len(), } } - pub fn iter_mut(&mut self) -> IterMut { + pub fn iter_mut(&mut self) -> IterMut<'_, T> { IterMut { idxs: 0..self.len(), stack: self,