From e60d9bc91cad2c6bd4c94019cd0cedf8cec5e773 Mon Sep 17 00:00:00 2001 From: Justin Karneges Date: Thu, 16 Nov 2023 15:00:17 -0800 Subject: [PATCH] fix clippy warning with rustc 1.74 --- src/condure.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/condure.rs b/src/condure.rs index bc2228f2..9456b6c0 100644 --- a/src/condure.rs +++ b/src/condure.rs @@ -358,12 +358,8 @@ impl App { } // wait for termination - for signal in &mut signals { - match signal { - signal_type if TERM_SIGNALS.contains(&signal_type) => break, - _ => unreachable!(), - } - } + let signal_type = signals.into_iter().next().unwrap(); + assert!(TERM_SIGNALS.contains(&signal_type)); } pub fn sizes() -> Vec<(String, usize)> {