Skip to content

Commit 0c88602

Browse files
committed
Hermit: Make Mutex::init a no-op
1 parent f954f7b commit 0c88602

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

library/std/src/sys/hermit/mutex.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -175,9 +175,7 @@ impl Mutex {
175175
}
176176

177177
#[inline]
178-
pub unsafe fn init(&mut self) {
179-
self.inner = Spinlock::new(MutexInner::new());
180-
}
178+
pub unsafe fn init(&mut self) {}
181179

182180
#[inline]
183181
pub unsafe fn lock(&self) {

0 commit comments

Comments
 (0)