Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ must_use_candidate = "allow"
option_if_let_else = "allow"

borrow_as_ptr = "warn"
elidable_lifetime_names = "warn"
manual_assert = "warn"
manual_assert_eq = "warn"
manual_let_else = "warn"
Expand Down
4 changes: 2 additions & 2 deletions src/map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4271,7 +4271,7 @@ impl<'a, K, V, S, A: Allocator> VacantEntry<'a, K, V, S, A> {
}
}

impl<'a, 'b, K, Q: ?Sized, V, S, A: Allocator> EntryRef<'a, 'b, K, Q, V, S, A> {
impl<'a, K, Q: ?Sized, V, S, A: Allocator> EntryRef<'a, '_, K, Q, V, S, A> {
/// Sets the value of the entry, and returns an `OccupiedEntry`.
///
/// # Examples
Expand Down Expand Up @@ -4465,7 +4465,7 @@ impl<'a, 'b, K, Q: ?Sized, V, S, A: Allocator> EntryRef<'a, 'b, K, Q, V, S, A> {
}
}

impl<'a, 'b, K, Q: ?Sized, V: Default, S, A: Allocator> EntryRef<'a, 'b, K, Q, V, S, A> {
impl<'a, K, Q: ?Sized, V: Default, S, A: Allocator> EntryRef<'a, '_, K, Q, V, S, A> {
/// Ensures a value is in the entry by inserting the default value if empty,
/// and returns a mutable reference to the value in the entry.
///
Expand Down
8 changes: 4 additions & 4 deletions src/table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2608,7 +2608,7 @@ pub struct IterMut<'a, T> {
inner: RawIter<T>,
marker: PhantomData<&'a mut T>,
}
impl<'a, T> IterMut<'a, T> {
impl<T> IterMut<'_, T> {
/// Returns a iterator of references over the remaining items.
#[cfg_attr(feature = "inline-more", inline)]
pub fn iter(&self) -> Iter<'_, T> {
Expand Down Expand Up @@ -2725,7 +2725,7 @@ pub struct UnsafeIter<'a, T> {
inner: RawIter<T>,
marker: PhantomData<&'a ()>,
}
impl<'a, T> UnsafeIter<'a, T> {
impl<T> UnsafeIter<'_, T> {
/// Returns a iterator of references over the remaining items.
#[cfg_attr(feature = "inline-more", inline)]
pub fn iter(&self) -> Iter<'_, T> {
Expand All @@ -2745,7 +2745,7 @@ impl<T> Default for UnsafeIter<'_, T> {
}
}
}
impl<'a, T> Iterator for UnsafeIter<'a, T> {
impl<T> Iterator for UnsafeIter<'_, T> {
type Item = NonNull<T>;

fn next(&mut self) -> Option<Self::Item> {
Expand Down Expand Up @@ -3110,7 +3110,7 @@ where
pub struct Drain<'a, T, A: Allocator = Global> {
inner: RawDrain<'a, T, A>,
}
impl<'a, T, A: Allocator> Drain<'a, T, A> {
impl<T, A: Allocator> Drain<'_, T, A> {
/// Returns a iterator of references over the remaining items.
#[cfg_attr(feature = "inline-more", inline)]
pub fn iter(&self) -> Iter<'_, T> {
Expand Down
Loading