diff options
| author | Urgau <urgau@numericable.fr> | 2025-04-27 12:00:47 +0200 |
|---|---|---|
| committer | Urgau <urgau@numericable.fr> | 2025-04-27 12:00:47 +0200 |
| commit | 05f2b2265dd96655e9984c1b2b8ef207f09a88f9 (patch) | |
| tree | 8fa8975089c64446650223b691f2bb031f9e6003 /library/std/src/sys | |
| parent | e8a6c175c51fbc347ea0b4479cc1b2de0932ddab (diff) | |
| download | rust-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.rs | 2 |
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`. |
