diff options
| author | Owen Jacobson <owen@grimoire.ca> | 2024-09-25 23:35:31 -0400 |
|---|---|---|
| committer | Owen Jacobson <owen@grimoire.ca> | 2024-09-25 23:57:25 -0400 |
| commit | cce1ab45db0de5e912fa7eec8d8a2cfe9a314078 (patch) | |
| tree | a5515c8487481cb5bf7082f8bd1431d76594c13a /src/test/fixtures | |
| parent | fa21a7a397ae1f829e6e9c8f4a4bd30acda4372a (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')
| -rw-r--r-- | src/test/fixtures/error.rs | 14 | ||||
| -rw-r--r-- | src/test/fixtures/mod.rs | 1 |
2 files changed, 0 insertions, 15 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; diff --git a/src/test/fixtures/mod.rs b/src/test/fixtures/mod.rs index 05e3f3f..a42dba5 100644 --- a/src/test/fixtures/mod.rs +++ b/src/test/fixtures/mod.rs @@ -3,7 +3,6 @@ use chrono::{TimeDelta, Utc}; use crate::{app::App, clock::RequestedAt, repo::pool}; pub mod channel; -pub mod error; pub mod future; pub mod identity; pub mod login; |
