From ce203fc4075665bbfa40d3eb02a81a56dc8e80d0 Mon Sep 17 00:00:00 2001 From: James Sturtevant Date: Thu, 21 Mar 2024 17:52:40 +0000 Subject: [PATCH] Fix clippy suggestion Fix clippy suggestion Signed-off-by: James Sturtevant --- src/asynchronous/shutdown.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/asynchronous/shutdown.rs b/src/asynchronous/shutdown.rs index 0bcf85c..6ea6a92 100644 --- a/src/asynchronous/shutdown.rs +++ b/src/asynchronous/shutdown.rs @@ -305,7 +305,7 @@ mod test { }); notifier.shutdown(); // Elapsed - assert!(matches!(notifier.wait_all_exit().await, Err(_))); + assert!(notifier.wait_all_exit().await.is_err()); task.await.unwrap(); } }