Simplify deref_mut to &mut *.

This commit is contained in:
Stephen Chung
2021-12-15 23:21:05 +08:00
parent abbfa3777d
commit 2adb4ba4a8
3 changed files with 54 additions and 119 deletions

View File

@@ -756,7 +756,7 @@ impl DerefMut for Target<'_> {
match self {
Self::RefMut(r) => *r,
#[cfg(not(feature = "no_closure"))]
Self::LockGuard((r, _)) => r.deref_mut(),
Self::LockGuard((r, _)) => &mut *r,
Self::TempValue(ref mut r) => r,
#[cfg(not(feature = "no_index"))]
Self::Bit(_, ref mut r, _)