Skip to content

Commit

Permalink
Hermit: Make Mutex::init a no-op
Browse files Browse the repository at this point in the history
  • Loading branch information
mkroening committed Jun 26, 2022
1 parent f954f7b commit 0c88602
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions library/std/src/sys/hermit/mutex.rs
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,7 @@ impl Mutex {
}

#[inline]
pub unsafe fn init(&mut self) {
self.inner = Spinlock::new(MutexInner::new());
}
pub unsafe fn init(&mut self) {}

#[inline]
pub unsafe fn lock(&self) {
Expand Down

0 comments on commit 0c88602

Please sign in to comment.