about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJethro Beekman <jethro@fortanix.com>2021-05-07 13:21:38 +0200
committerJethro Beekman <jethro@fortanix.com>2021-05-07 13:21:38 +0200
commit30b82e0f96579d9f897c4e2a780af82662d89772 (patch)
treeff5e123d1bbaec69280baf695ac06bff69a50c26
parentac888e8675182c703c2cd097957878faf88dad94 (diff)
downloadrust-30b82e0f96579d9f897c4e2a780af82662d89772.tar.gz
rust-30b82e0f96579d9f897c4e2a780af82662d89772.zip
SGX mutex is movable
-rw-r--r--library/std/src/sys/sgx/mutex.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/sys/sgx/mutex.rs b/library/std/src/sys/sgx/mutex.rs
index 8874517dac6..1b5ced4178f 100644
--- a/library/std/src/sys/sgx/mutex.rs
+++ b/library/std/src/sys/sgx/mutex.rs
@@ -8,7 +8,7 @@ pub struct Mutex {
     inner: SpinMutex<WaitVariable<bool>>,
 }
 
-pub type MovableMutex = Box<Mutex>;
+pub type MovableMutex = Mutex;
 
 // Implementation according to “Operating Systems: Three Easy Pieces”, chapter 28
 impl Mutex {