do not skip return code check in release builds
This commit is contained in:
parent
0c6a093afa
commit
db13390104
1 changed files with 1 additions and 1 deletions
|
|
@ -58,7 +58,7 @@ impl RWLock {
|
|||
}
|
||||
panic!("rwlock read lock would result in deadlock");
|
||||
} else {
|
||||
debug_assert_eq!(r, 0);
|
||||
assert_eq!(r, 0);
|
||||
self.num_readers.fetch_add(1, Ordering::Relaxed);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue