1
Fork 0

Use assert_matches around the compiler

This commit is contained in:
Michael Goulet 2024-08-11 12:10:36 -04:00
parent 68d2e8a66e
commit c361c924a0
39 changed files with 100 additions and 49 deletions

View file

@ -1,3 +1,5 @@
use std::assert_matches::assert_matches;
use super::*;
#[allow(non_snake_case)]
@ -16,7 +18,7 @@ fn lookup_cdecl() {
#[test]
fn lookup_baz() {
let abi = lookup("baz");
assert!(matches!(abi, Err(AbiUnsupported::Unrecognized)))
assert_matches!(abi, Err(AbiUnsupported::Unrecognized));
}
#[test]