Skip to content

Commit

Permalink
fix: return type of single-threaded dummy lock must be droppable
Browse files Browse the repository at this point in the history
  • Loading branch information
abrown committed Oct 11, 2022
1 parent 9530ba0 commit 95b0b2d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/std/src/sys/wasi/os.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ cfg_if::cfg_if! {
} else {
// No need for a lock if we are single-threaded.
pub fn env_read_lock() -> impl Drop {
()
Box::new(())
}
pub fn env_write_lock() -> impl Drop {
()
Box::new(())
}
}
}
Expand Down

0 comments on commit 95b0b2d

Please sign in to comment.