std panicking: Make decrease() return ()
Nothing uses the return value. This will make the next changes easier. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
This commit is contained in:
parent
ac888e8675
commit
a9f43a2a8f
@ -252,13 +252,13 @@ pub mod panic_count {
|
||||
})
|
||||
}
|
||||
|
||||
pub fn decrease() -> usize {
|
||||
pub fn decrease() {
|
||||
GLOBAL_PANIC_COUNT.fetch_sub(1, Ordering::Relaxed);
|
||||
LOCAL_PANIC_COUNT.with(|c| {
|
||||
let next = c.get() - 1;
|
||||
c.set(next);
|
||||
next
|
||||
})
|
||||
});
|
||||
}
|
||||
|
||||
pub fn get() -> usize {
|
||||
|
Loading…
x
Reference in New Issue
Block a user