@@ -36,7 +36,7 @@ impl<T> SeaCow<'static, T> {
3636impl < ' a , T > SeaCow < ' a , T > {
3737 #[ inline]
3838 #[ must_use]
39- pub fn borrowed ( data : & ' a [ T ] ) -> Self {
39+ pub const fn borrowed ( data : & ' a [ T ] ) -> Self {
4040 Self { inner : SeaCowInner :: Borrowed ( data) }
4141 }
4242
@@ -86,7 +86,7 @@ enum SeaCowInner<'a, T> {
8686}
8787
8888#[ cfg( feature = "_internal_c_ffi" ) ]
89- impl < ' a , T > Drop for SeaCowInner < ' a , T > {
89+ impl < T > Drop for SeaCowInner < ' _ , T > {
9090 fn drop ( & mut self ) {
9191 if let Self :: Owned { ptr, free_fn, .. } = self {
9292 unsafe {
@@ -96,7 +96,7 @@ impl<'a, T> Drop for SeaCowInner<'a, T> {
9696 }
9797}
9898
99- impl < ' a , T > SeaCow < ' a , T > {
99+ impl < T > SeaCow < ' _ , T > {
100100 #[ must_use]
101101 pub fn as_slice ( & self ) -> & [ T ] {
102102 match & self . inner {
@@ -120,17 +120,18 @@ pub(crate) struct RowBitmapMut<'a, T> {
120120}
121121unsafe impl < T : Send + Sync > Send for RowBitmapMut < ' _ , T > { }
122122
123- impl < ' a , T > RowBitmapMut < ' a , MaybeUninit < T > > {
123+ impl < T > RowBitmapMut < ' _ , MaybeUninit < T > > {
124124 #[ inline]
125125 pub ( crate ) unsafe fn assume_init < ' maybeowned > ( & ' maybeowned mut self ) -> RowBitmap < ' maybeowned , T > {
126+ #[ allow( clippy:: transmute_ptr_to_ptr) ]
126127 RowBitmap {
127128 width : self . width ,
128129 rows : std:: mem:: transmute :: < & ' maybeowned [ PointerMut < MaybeUninit < T > > ] , & ' maybeowned [ Pointer < T > ] > ( self . rows . borrow_mut ( ) ) ,
129130 }
130131 }
131132}
132133
133- impl < ' a , T > RowBitmap < ' a , T > {
134+ impl < T > RowBitmap < ' _ , T > {
134135 pub fn rows ( & self ) -> impl Iterator < Item = & [ T ] > {
135136 let width = self . width ;
136137 self . rows . iter ( ) . map ( move |row| {
@@ -145,7 +146,7 @@ enum MutCow<'a, T: ?Sized> {
145146 Borrowed ( & ' a mut T ) ,
146147}
147148
148- impl < ' a , T : ?Sized > MutCow < ' a , T > {
149+ impl < T : ?Sized > MutCow < ' _ , T > {
149150 #[ must_use]
150151 pub fn borrow_mut ( & mut self ) -> & mut T {
151152 match self {
0 commit comments