diff options
| author | Jethro Beekman <jethro@fortanix.com> | 2021-05-07 13:21:38 +0200 |
|---|---|---|
| committer | Jethro Beekman <jethro@fortanix.com> | 2021-05-07 13:21:38 +0200 |
| commit | 30b82e0f96579d9f897c4e2a780af82662d89772 (patch) | |
| tree | ff5e123d1bbaec69280baf695ac06bff69a50c26 | |
| parent | ac888e8675182c703c2cd097957878faf88dad94 (diff) | |
| download | rust-30b82e0f96579d9f897c4e2a780af82662d89772.tar.gz rust-30b82e0f96579d9f897c4e2a780af82662d89772.zip | |
SGX mutex is movable
| -rw-r--r-- | library/std/src/sys/sgx/mutex.rs | 2 |
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 { |
