mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
fix: return type of single-threaded dummy lock must be droppable
This commit is contained in:
parent
9530ba0fe2
commit
95b0b2d349
@ -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(())
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user