fix: return type of single-threaded dummy lock must be droppable

This commit is contained in:
Andrew Brown 2022-10-11 11:42:44 -07:00
parent 9530ba0fe2
commit 95b0b2d349

View File

@ -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(())
}
}
}