Skip to content

Commit

Permalink
style: fix clippy::needless_borrow lints (#73)
Browse files Browse the repository at this point in the history
This commit fixes the [`clippy::needless_borrow`][1] lints which were
added in a recent Clippy version.

[1]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
  • Loading branch information
hawkw authored Oct 5, 2022
1 parent 0d322c4 commit a0e5740
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ impl<T> Ref<'_, T> {
// initialized.
// TODO(eliza): use `MaybeUninit::assume_init_ref` here once it's
// supported by `tracing-appender`'s MSRV.
f(&*(&*value).as_ptr())
f(&*(*value).as_ptr())
})
}

Expand All @@ -441,7 +441,7 @@ impl<T> Ref<'_, T> {
// slot.
// TODO(eliza): use `MaybeUninit::assume_init_mut` here once it's
// supported by `tracing-appender`'s MSRV.
f(&mut *(&mut *value).as_mut_ptr())
f(&mut *(*value).as_mut_ptr())
})
}
}
Expand Down

0 comments on commit a0e5740

Please sign in to comment.