@@ -729,13 +729,13 @@ pub struct Cursor<'a, K, V> {
729
729
// SAFETY: The [`Cursor`] has exclusive access to both `K` and `V`, so it is sufficient to require them to be `Send`.
730
730
// The cursor only gives out immutable references to the keys, but since it has excusive access to those same
731
731
// keys, `Send` is sufficient. `Sync` would be okay, but it is more restrictive to the user.
732
- unsafe impl < ' a , K : Send , V : Send > Send for Cursor < ' a , K , V > { }
732
+ unsafe impl < K : Send , V : Send > Send for Cursor < ' _ , K , V > { }
733
733
734
734
// SAFETY: The [`Cursor`] gives out immutable references to K and mutable references to V,
735
735
// so it has the same thread safety requirements as mutable references.
736
- unsafe impl < ' a , K : Sync , V : Sync > Sync for Cursor < ' a , K , V > { }
736
+ unsafe impl < K : Sync , V : Sync > Sync for Cursor < ' _ , K , V > { }
737
737
738
- impl < ' a , K , V > Cursor < ' a , K , V > {
738
+ impl < K , V > Cursor < ' _ , K , V > {
739
739
/// The current node
740
740
pub fn current ( & self ) -> ( & K , & V ) {
741
741
// SAFETY:
@@ -948,11 +948,11 @@ pub struct Iter<'a, K, V> {
948
948
949
949
// SAFETY: The [`Iter`] gives out immutable references to K and V, so it has the same
950
950
// thread safety requirements as immutable references.
951
- unsafe impl < ' a , K : Sync , V : Sync > Send for Iter < ' a , K , V > { }
951
+ unsafe impl < K : Sync , V : Sync > Send for Iter < ' _ , K , V > { }
952
952
953
953
// SAFETY: The [`Iter`] gives out immutable references to K and V, so it has the same
954
954
// thread safety requirements as immutable references.
955
- unsafe impl < ' a , K : Sync , V : Sync > Sync for Iter < ' a , K , V > { }
955
+ unsafe impl < K : Sync , V : Sync > Sync for Iter < ' _ , K , V > { }
956
956
957
957
impl < ' a , K , V > Iterator for Iter < ' a , K , V > {
958
958
type Item = ( & ' a K , & ' a V ) ;
@@ -983,11 +983,11 @@ pub struct IterMut<'a, K, V> {
983
983
// SAFETY: The [`IterMut`] has exclusive access to both `K` and `V`, so it is sufficient to require them to be `Send`.
984
984
// The iterator only gives out immutable references to the keys, but since the iterator has excusive access to those same
985
985
// keys, `Send` is sufficient. `Sync` would be okay, but it is more restrictive to the user.
986
- unsafe impl < ' a , K : Send , V : Send > Send for IterMut < ' a , K , V > { }
986
+ unsafe impl < K : Send , V : Send > Send for IterMut < ' _ , K , V > { }
987
987
988
988
// SAFETY: The [`IterMut`] gives out immutable references to K and mutable references to V, so it has the same
989
989
// thread safety requirements as mutable references.
990
- unsafe impl < ' a , K : Sync , V : Sync > Sync for IterMut < ' a , K , V > { }
990
+ unsafe impl < K : Sync , V : Sync > Sync for IterMut < ' _ , K , V > { }
991
991
992
992
impl < ' a , K , V > Iterator for IterMut < ' a , K , V > {
993
993
type Item = ( & ' a K , & ' a mut V ) ;
0 commit comments