@@ -184,7 +184,7 @@ unsafe impl AsNative<sys::AParcel> for Parcel {
184184
185185/// Safety: The `BorrowedParcel` constructors guarantee that a `BorrowedParcel`
186186/// object will always contain a valid pointer to an `AParcel`.
187- unsafe impl < ' a > AsNative < sys:: AParcel > for BorrowedParcel < ' a > {
187+ unsafe impl AsNative < sys:: AParcel > for BorrowedParcel < ' _ > {
188188 fn as_native ( & self ) -> * const sys:: AParcel {
189189 self . ptr . as_ptr ( )
190190 }
@@ -195,7 +195,7 @@ unsafe impl<'a> AsNative<sys::AParcel> for BorrowedParcel<'a> {
195195}
196196
197197// Data serialization methods
198- impl < ' a > BorrowedParcel < ' a > {
198+ impl BorrowedParcel < ' _ > {
199199 /// Data written to parcelable is zero'd before being deleted or reallocated.
200200 #[ cfg( not( android_ndk) ) ]
201201 pub fn mark_sensitive ( & mut self ) {
@@ -334,7 +334,7 @@ impl<'a> BorrowedParcel<'a> {
334334/// A segment of a writable parcel, used for [`BorrowedParcel::sized_write`].
335335pub struct WritableSubParcel < ' a > ( BorrowedParcel < ' a > ) ;
336336
337- impl < ' a > WritableSubParcel < ' a > {
337+ impl WritableSubParcel < ' _ > {
338338 /// Write a type that implements [`Serialize`] to the sub-parcel.
339339 pub fn write < S : Serialize + ?Sized > ( & mut self , parcelable : & S ) -> Result < ( ) > {
340340 parcelable. serialize ( & mut self . 0 )
@@ -440,7 +440,7 @@ impl Parcel {
440440}
441441
442442// Data deserialization methods
443- impl < ' a > BorrowedParcel < ' a > {
443+ impl BorrowedParcel < ' _ > {
444444 /// Attempt to read a type that implements [`Deserialize`] from this parcel.
445445 pub fn read < D : Deserialize > ( & self ) -> Result < D > {
446446 D :: deserialize ( self )
@@ -565,7 +565,7 @@ pub struct ReadableSubParcel<'a> {
565565 end_position : i32 ,
566566}
567567
568- impl < ' a > ReadableSubParcel < ' a > {
568+ impl ReadableSubParcel < ' _ > {
569569 /// Read a type that implements [`Deserialize`] from the sub-parcel.
570570 pub fn read < D : Deserialize > ( & self ) -> Result < D > {
571571 D :: deserialize ( & self . parcel )
@@ -649,7 +649,7 @@ impl Parcel {
649649}
650650
651651// Internal APIs
652- impl < ' a > BorrowedParcel < ' a > {
652+ impl BorrowedParcel < ' _ > {
653653 pub ( crate ) fn write_binder ( & mut self , binder : Option < & SpIBinder > ) -> Result < ( ) > {
654654 // Safety: `BorrowedParcel` always contains a valid pointer to an
655655 // `AParcel`. `AsNative` for `Option<SpIBinder`> will either return
@@ -702,7 +702,7 @@ impl fmt::Debug for Parcel {
702702 }
703703}
704704
705- impl < ' a > fmt:: Debug for BorrowedParcel < ' a > {
705+ impl fmt:: Debug for BorrowedParcel < ' _ > {
706706 fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
707707 f. debug_struct ( "BorrowedParcel" ) . finish ( )
708708 }
0 commit comments