about summary refs log tree commit diff
path: root/compiler/rustc_data_structures/src/memmap.rs
diff options
context:
space:
mode:
authorMaybe Waffle <waffle.lapkin@gmail.com>2022-11-29 11:01:17 +0000
committerMaybe Waffle <waffle.lapkin@gmail.com>2022-12-01 17:34:43 +0000
commitf2b97a8bfe23cdda293908e3c3e01f2613787168 (patch)
treea7fe31c1e002272731591d9f0e2337f19de420d3 /compiler/rustc_data_structures/src/memmap.rs
parent9c0bc3028a575eece6d4e8fbc6624cb95b9c9893 (diff)
downloadrust-f2b97a8bfe23cdda293908e3c3e01f2613787168.tar.gz
rust-f2b97a8bfe23cdda293908e3c3e01f2613787168.zip
Remove useless borrows and derefs
Diffstat (limited to 'compiler/rustc_data_structures/src/memmap.rs')
-rw-r--r--compiler/rustc_data_structures/src/memmap.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_data_structures/src/memmap.rs b/compiler/rustc_data_structures/src/memmap.rs
index 917416df6b8..b95c1af3c26 100644
--- a/compiler/rustc_data_structures/src/memmap.rs
+++ b/compiler/rustc_data_structures/src/memmap.rs
@@ -36,7 +36,7 @@ impl Deref for Mmap {
 
     #[inline]
     fn deref(&self) -> &[u8] {
-        &*self.0
+        &self.0
     }
 }
 
@@ -96,13 +96,13 @@ impl Deref for MmapMut {
 
     #[inline]
     fn deref(&self) -> &[u8] {
-        &*self.0
+        &self.0
     }
 }
 
 impl DerefMut for MmapMut {
     #[inline]
     fn deref_mut(&mut self) -> &mut [u8] {
-        &mut *self.0
+        &mut self.0
     }
 }