mirror of
https://github.com/darkrenaissance/darkfi.git
synced 2026-04-28 03:00:18 -04:00
chore: clippy
This commit is contained in:
@@ -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_,
|
||||
|
||||
Reference in New Issue
Block a user