Skip to content

Commit

Permalink
Use assert!(matches!()) instead of match
Browse files Browse the repository at this point in the history
  • Loading branch information
cobward committed Aug 15, 2024
1 parent b9fa910 commit 6932636
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tests/e2e.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,5 @@ async fn w3c_vc_did_client_direct_post() {
assert_eq!(None, redirect);

let status = verifier.poll_status(id).await.unwrap();
match status {
Status::Complete(Outcome::Success { .. }) => (),
_ => panic!("unexpected status: {status:?}"),
}
assert!(matches!(status, Status::Complete(Outcome::Success { .. })))
}

0 comments on commit 6932636

Please sign in to comment.