Skip to content

Commit 45c4530

Browse files
committed
No longer put cloudabi mutexes in a box.
Cloudabi mutexes may be moved safely.
1 parent 4db7b7c commit 45c4530

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

std/src/sys/cloudabi/mutex.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ extern "C" {
1515
// implemented identically.
1616
pub struct Mutex(RWLock);
1717

18-
pub type MovableMutex = Box<Mutex>;
18+
pub type MovableMutex = Mutex;
1919

2020
pub unsafe fn raw(m: &Mutex) -> *mut AtomicU32 {
2121
rwlock::raw(&m.0)

0 commit comments

Comments
 (0)