chore: clippy

This commit is contained in:
aggstam
2023-08-31 16:18:32 +03:00
parent 3951152d30
commit be4da84140

View File

@@ -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_,