From be4da84140f8a99044f8a5a2705cefa576ee92f6 Mon Sep 17 00:00:00 2001 From: aggstam Date: Thu, 31 Aug 2023 16:18:32 +0300 Subject: [PATCH] chore: clippy --- src/system/stoppable_task.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/system/stoppable_task.rs b/src/system/stoppable_task.rs index 8a459abb3..55b210284 100644 --- a/src/system/stoppable_task.rs +++ b/src/system/stoppable_task.rs @@ -169,12 +169,7 @@ mod tests { }, // Handle stop |result| async move { - assert!(result.is_err()); - let is_correct_err = match result { - Err(Error::DetachedTaskStopped) => true, - _ => false, - }; - assert!(is_correct_err); + assert!(matches!(result, Err(Error::DetachedTaskStopped))); }, Error::DetachedTaskStopped, executor_,