We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f4e8842 commit f1c3edbCopy full SHA for f1c3edb
library/std/src/sys/unsupported/rwlock.rs
@@ -57,7 +57,7 @@ impl RWLock {
57
58
#[inline]
59
pub unsafe fn write_unlock(&self) {
60
- self.mode.set(0);
+ assert_eq!(self.mode.replace(0), -1);
61
}
62
63
0 commit comments