summaryrefslogtreecommitdiff
path: root/src/test/fixtures/error.rs
diff options
context:
space:
mode:
authorOwen Jacobson <owen@grimoire.ca>2024-09-25 23:35:31 -0400
committerOwen Jacobson <owen@grimoire.ca>2024-09-25 23:57:25 -0400
commitcce1ab45db0de5e912fa7eec8d8a2cfe9a314078 (patch)
treea5515c8487481cb5bf7082f8bd1431d76594c13a /src/test/fixtures/error.rs
parentfa21a7a397ae1f829e6e9c8f4a4bd30acda4372a (diff)
Retire `fixtures::error::expected!`.
I had no idea `std` included a `matches!` macro, and I feel we're better off using it.
Diffstat (limited to 'src/test/fixtures/error.rs')
-rw-r--r--src/test/fixtures/error.rs14
1 files changed, 0 insertions, 14 deletions
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;