Skip to content

Commit

Permalink
Fix loombox.rs clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
faern committed May 25, 2024
1 parent 4a8bb12 commit 1938579
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/loombox.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,25 +65,25 @@ impl<T: ?Sized> core::ops::DerefMut for Box<T> {

impl<T: ?Sized> borrow::Borrow<T> for Box<T> {
fn borrow(&self) -> &T {
&**self
self
}
}

impl<T: ?Sized> borrow::BorrowMut<T> for Box<T> {
fn borrow_mut(&mut self) -> &mut T {
&mut **self
self
}
}

impl<T: ?Sized> AsRef<T> for Box<T> {
fn as_ref(&self) -> &T {
&**self
self
}
}

impl<T: ?Sized> AsMut<T> for Box<T> {
fn as_mut(&mut self) -> &mut T {
&mut **self
self
}
}

Expand Down

0 comments on commit 1938579

Please sign in to comment.