diff options
author | Lukas Wirth <[email protected]> | 2021-01-14 21:43:09 +0000 |
---|---|---|
committer | Lukas Wirth <[email protected]> | 2021-01-14 21:43:09 +0000 |
commit | e23bfafb32a235fdb60ba279ea68b5aa381c2110 (patch) | |
tree | bfb271b7cfcef131ef14e75d072fc4e0b71e43e2 /crates/stdx/src | |
parent | f51457a643b768794092f73add6dda4aecd400a1 (diff) |
Fix assert_never invoking assert_always
Diffstat (limited to 'crates/stdx/src')
-rw-r--r-- | crates/stdx/src/macros.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/stdx/src/macros.rs b/crates/stdx/src/macros.rs index 263b938e3..4f5c6100d 100644 --- a/crates/stdx/src/macros.rs +++ b/crates/stdx/src/macros.rs | |||
@@ -66,7 +66,7 @@ macro_rules! impl_from { | |||
66 | /// Shamelessly stolen from: https://www.sqlite.org/assert.html | 66 | /// Shamelessly stolen from: https://www.sqlite.org/assert.html |
67 | #[macro_export] | 67 | #[macro_export] |
68 | macro_rules! assert_never { | 68 | macro_rules! assert_never { |
69 | ($cond:expr) => { $crate::assert_always!($cond, "") }; | 69 | ($cond:expr) => { $crate::assert_never!($cond, "") }; |
70 | ($cond:expr, $($fmt:tt)*) => {{ | 70 | ($cond:expr, $($fmt:tt)*) => {{ |
71 | let value = $cond; | 71 | let value = $cond; |
72 | if value { | 72 | if value { |