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:
Ian Jackson 2021-04-22 14:58:05 +01:00
parent ac888e8675
commit a9f43a2a8f

View file

@ -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 {