Skip to content

Commit a9f43a2

Browse files
committed
std panicking: Make decrease() return ()
Nothing uses the return value. This will make the next changes easier. Signed-off-by: Ian Jackson <[email protected]>
1 parent ac888e8 commit a9f43a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/std/src/panicking.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -252,13 +252,13 @@ pub mod panic_count {
252252
})
253253
}
254254

255-
pub fn decrease() -> usize {
255+
pub fn decrease() {
256256
GLOBAL_PANIC_COUNT.fetch_sub(1, Ordering::Relaxed);
257257
LOCAL_PANIC_COUNT.with(|c| {
258258
let next = c.get() - 1;
259259
c.set(next);
260260
next
261-
})
261+
});
262262
}
263263

264264
pub fn get() -> usize {

0 commit comments

Comments
 (0)