Skip to content

Commit

Permalink
Fix clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
djkoloski committed Oct 7, 2024
1 parent bc8009d commit b9a3594
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions munge/src/impls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ unsafe impl<T, U> Restructure<U> for MaybeUninit<T> {
// `Borrow`.
// - `underlying` returns a pointer to its inner type, so it is guaranteed to be
// non-null, properly aligned, and valid for reads.
unsafe impl<'a, T> Destructure for &'a MaybeUninit<T> {
unsafe impl<T> Destructure for &MaybeUninit<T> {
type Underlying = T;
type Destructuring = Borrow;

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

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

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

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

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

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

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

Expand Down

0 comments on commit b9a3594

Please sign in to comment.