Skip to content

Commit b9a3594

Browse files
committed
Fix clippy lints
1 parent bc8009d commit b9a3594

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

munge/src/impls.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ unsafe impl<T, U> Restructure<U> for MaybeUninit<T> {
4343
// `Borrow`.
4444
// - `underlying` returns a pointer to its inner type, so it is guaranteed to be
4545
// non-null, properly aligned, and valid for reads.
46-
unsafe impl<'a, T> Destructure for &'a MaybeUninit<T> {
46+
unsafe impl<T> Destructure for &MaybeUninit<T> {
4747
type Underlying = T;
4848
type Destructuring = Borrow;
4949

@@ -73,7 +73,7 @@ unsafe impl<'a, T, U: 'a> Restructure<U> for &'a MaybeUninit<T> {
7373
// type is `Borrow`.
7474
// - `underlying` returns a pointer to its inner type, so it is guaranteed to be
7575
// non-null, properly aligned, and valid for reads.
76-
unsafe impl<'a, T> Destructure for &'a mut MaybeUninit<T> {
76+
unsafe impl<T> Destructure for &mut MaybeUninit<T> {
7777
type Underlying = T;
7878
type Destructuring = Borrow;
7979

@@ -132,7 +132,7 @@ unsafe impl<T, U> Restructure<U> for Cell<T> {
132132
// `Borrow`.
133133
// - `underlying` returns a pointer to its inner type, so it is guaranteed to be
134134
// non-null, properly aligned, and valid for reads.
135-
unsafe impl<'a, T: ?Sized> Destructure for &'a Cell<T> {
135+
unsafe impl<T: ?Sized> Destructure for &Cell<T> {
136136
type Underlying = T;
137137
type Destructuring = Borrow;
138138

@@ -167,7 +167,7 @@ unsafe impl<'a, T: ?Sized, U: 'a + ?Sized> Restructure<U> for &'a Cell<T> {
167167
// `Borrow`.
168168
// - `underlying` returns a pointer to its inner type, so it is guaranteed to be
169169
// non-null, properly aligned, and valid for reads.
170-
unsafe impl<'a, T: ?Sized> Destructure for &'a mut Cell<T> {
170+
unsafe impl<T: ?Sized> Destructure for &mut Cell<T> {
171171
type Underlying = T;
172172
type Destructuring = Borrow;
173173

@@ -232,7 +232,7 @@ unsafe impl<T, U> Restructure<U> for UnsafeCell<T> {
232232
// `Borrow`.
233233
// - `underlying` returns a pointer to its inner type, so it is guaranteed to be
234234
// non-null, properly aligned, and valid for reads.
235-
unsafe impl<'a, T: ?Sized> Destructure for &'a UnsafeCell<T> {
235+
unsafe impl<T: ?Sized> Destructure for &UnsafeCell<T> {
236236
type Underlying = T;
237237
type Destructuring = Borrow;
238238

@@ -272,7 +272,7 @@ where
272272
// is `Borrow`.
273273
// - `underlying` returns a pointer to its inner type, so it is guaranteed to be
274274
// non-null, properly aligned, and valid for reads.
275-
unsafe impl<'a, T: ?Sized> Destructure for &'a mut UnsafeCell<T> {
275+
unsafe impl<T: ?Sized> Destructure for &mut UnsafeCell<T> {
276276
type Underlying = T;
277277
type Destructuring = Borrow;
278278

@@ -341,7 +341,7 @@ unsafe impl<T, U> Restructure<U> for ManuallyDrop<T> {
341341
// is `Borrow`.
342342
// - `underlying` returns a pointer to its inner type, so it is guaranteed to be
343343
// non-null, properly aligned, and valid for reads.
344-
unsafe impl<'a, T: ?Sized> Destructure for &'a ManuallyDrop<T> {
344+
unsafe impl<T: ?Sized> Destructure for &ManuallyDrop<T> {
345345
type Underlying = T;
346346
type Destructuring = Borrow;
347347

@@ -381,7 +381,7 @@ where
381381
// type is `Borrow`.
382382
// - `underlying` returns a pointer to its inner type, so it is guaranteed to be
383383
// non-null, properly aligned, and valid for reads.
384-
unsafe impl<'a, T: ?Sized> Destructure for &'a mut ManuallyDrop<T> {
384+
unsafe impl<T: ?Sized> Destructure for &mut ManuallyDrop<T> {
385385
type Underlying = T;
386386
type Destructuring = Borrow;
387387

0 commit comments

Comments
 (0)