Skip to content

Commit 95b0b2d

Browse files
committed
fix: return type of single-threaded dummy lock must be droppable
1 parent 9530ba0 commit 95b0b2d

File tree

1 file changed

+2
-2
lines changed
  • library/std/src/sys/wasi

1 file changed

+2
-2
lines changed

Diff for: library/std/src/sys/wasi/os.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ cfg_if::cfg_if! {
3838
} else {
3939
// No need for a lock if we are single-threaded.
4040
pub fn env_read_lock() -> impl Drop {
41-
()
41+
Box::new(())
4242
}
4343
pub fn env_write_lock() -> impl Drop {
44-
()
44+
Box::new(())
4545
}
4646
}
4747
}

0 commit comments

Comments
 (0)