From cce1ab45db0de5e912fa7eec8d8a2cfe9a314078 Mon Sep 17 00:00:00 2001 From: Owen Jacobson Date: Wed, 25 Sep 2024 23:35:31 -0400 Subject: Retire `fixtures::error::expected!`. I had no idea `std` included a `matches!` macro, and I feel we're better off using it. --- src/test/fixtures/error.rs | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 src/test/fixtures/error.rs (limited to 'src/test/fixtures/error.rs') diff --git a/src/test/fixtures/error.rs b/src/test/fixtures/error.rs deleted file mode 100644 index 559afee..0000000 --- a/src/test/fixtures/error.rs +++ /dev/null @@ -1,14 +0,0 @@ -macro_rules! expected { - ($expr:expr, $expect:pat $(,)?) => { - $crate::test::fixtures::error::expected!($expr, $expect, ()) - }; - - ($expr:expr, $expect:pat, $body:expr $(,)?) => { - match $expr { - $expect => $body, - other => panic!("expected {}, found {other:#?}", stringify!($expect)), - } - }; -} - -pub(crate) use expected; -- cgit v1.2.3