diff options
| author | Mara Bos <m-ou.se@m-ou.se> | 2020-10-01 01:08:51 +0200 |
|---|---|---|
| committer | Mara Bos <m-ou.se@m-ou.se> | 2020-10-02 09:47:08 +0200 |
| commit | 2f0386771d17703d8e5ea9abef3359770b51af3f (patch) | |
| tree | 28861725d63a7019e1f6b8e8870ff0cdb9901f1d | |
| parent | def5188ca887e36efdccd2cfda159eb1f3b89f9b (diff) | |
| download | rust-2f0386771d17703d8e5ea9abef3359770b51af3f.tar.gz rust-2f0386771d17703d8e5ea9abef3359770b51af3f.zip | |
No longer put mutexes on the 'unsupported' platform in a box.
These mutexes are just a bool (in a cell), so can be moved without problems.
| -rw-r--r-- | library/std/src/sys/unsupported/mutex.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/sys/unsupported/mutex.rs b/library/std/src/sys/unsupported/mutex.rs index a28f2cf4ffe..06ea9a1e2c1 100644 --- a/library/std/src/sys/unsupported/mutex.rs +++ b/library/std/src/sys/unsupported/mutex.rs @@ -4,7 +4,7 @@ pub struct Mutex { locked: UnsafeCell<bool>, } -pub type MovableMutex = Box<Mutex>; +pub type MovableMutex = Mutex; unsafe impl Send for Mutex {} unsafe impl Sync for Mutex {} // no threads on this platform |
