Skip to content

Commit

Permalink
Get rid of unused unsafe warning
Browse files Browse the repository at this point in the history
  • Loading branch information
faern committed Dec 7, 2018
1 parent 2d08c43 commit dcd6019
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/src/word_lock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ impl WordLock {

// Get our thread data and prepare it for parking
state = with_thread_data(|thread_data| {
#[allow(unused_unsafe)]
unsafe {
thread_data.parker.prepare_park();
}
Expand All @@ -173,6 +174,7 @@ impl WordLock {
}

// Sleep until we are woken up by an unlock
#[allow(unused_unsafe)]
unsafe {
thread_data.parker.park();
}
Expand Down

0 comments on commit dcd6019

Please sign in to comment.