From b258c790a5b9f584da2a6ac34e6365fde3a1ee8e Mon Sep 17 00:00:00 2001 From: can1357 Date: Sat, 4 Jul 2026 09:06:25 +0200 Subject: [PATCH] style(pi-natives): fixed manual_assert lint in drop bomb test --- crates/pi-natives/src/task.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/crates/pi-natives/src/task.rs b/crates/pi-natives/src/task.rs index 15bc0ea4e..43d844145 100644 --- a/crates/pi-natives/src/task.rs +++ b/crates/pi-natives/src/task.rs @@ -395,9 +395,7 @@ mod tests { self .dropped .store(true, std::sync::atomic::Ordering::SeqCst); - if !std::thread::panicking() { - panic!("DropBomb detonated in drop"); - } + assert!(std::thread::panicking(), "DropBomb detonated in drop"); } }