summary refs log tree commit diff
path: root/library/std/src/sys
diff options
context:
space:
mode:
authorUrgau <urgau@numericable.fr>2025-04-27 12:00:47 +0200
committerUrgau <urgau@numericable.fr>2025-04-27 12:00:47 +0200
commit05f2b2265dd96655e9984c1b2b8ef207f09a88f9 (patch)
tree8fa8975089c64446650223b691f2bb031f9e6003 /library/std/src/sys
parente8a6c175c51fbc347ea0b4479cc1b2de0932ddab (diff)
downloadrust-05f2b2265dd96655e9984c1b2b8ef207f09a88f9.tar.gz
rust-05f2b2265dd96655e9984c1b2b8ef207f09a88f9.zip
Fix SGX library code implicit auto-ref
Diffstat (limited to 'library/std/src/sys')
-rw-r--r--library/std/src/sys/pal/sgx/abi/usercalls/alloc.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/sys/pal/sgx/abi/usercalls/alloc.rs b/library/std/src/sys/pal/sgx/abi/usercalls/alloc.rs
index 3fe6dee3d6f..a60b83213fd 100644
--- a/library/std/src/sys/pal/sgx/abi/usercalls/alloc.rs
+++ b/library/std/src/sys/pal/sgx/abi/usercalls/alloc.rs
@@ -675,7 +675,7 @@ where
 
     /// Obtain the number of elements in this user slice.
     pub fn len(&self) -> usize {
-        unsafe { (*self.0.get()).len() }
+        unsafe { self.0.get().len() }
     }
 
     /// Copies the value from user memory and appends it to `dest`.