Skip to content

Commit

Permalink
remove redundant borrow
Browse files Browse the repository at this point in the history
  • Loading branch information
matheus-consoli committed Mar 20, 2024
1 parent 8ae1cec commit f8d5a64
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/utils/wakers/array/no_std.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,13 @@ impl<'a, const N: usize> Deref for ReadinessArrayRef<'a, N> {
type Target = ReadinessArray<N>;

fn deref(&self) -> &Self::Target {
&self.inner
self.inner
}
}

impl<'a, const N: usize> DerefMut for ReadinessArrayRef<'a, N> {
fn deref_mut(&mut self) -> &mut Self::Target {
&mut self.inner
self.inner
}
}

Expand Down
4 changes: 2 additions & 2 deletions src/utils/wakers/vec/no_std.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,13 @@ impl<'a> Deref for ReadinessVecRef<'a> {
type Target = ReadinessVec;

fn deref(&self) -> &Self::Target {
&self.inner
self.inner
}
}

impl<'a> DerefMut for ReadinessVecRef<'a> {
fn deref_mut(&mut self) -> &mut Self::Target {
&mut self.inner
self.inner
}
}

Expand Down

0 comments on commit f8d5a64

Please sign in to comment.