Fix assert_never invoking assert_always

This commit is contained in:
Lukas Wirth 2021-01-14 22:43:09 +01:00
parent f51457a643
commit e23bfafb32

View File

@ -66,7 +66,7 @@ fn from(it: $sub_variant) -> $enum {
/// Shamelessly stolen from: https://www.sqlite.org/assert.html
#[macro_export]
macro_rules! assert_never {
($cond:expr) => { $crate::assert_always!($cond, "") };
($cond:expr) => { $crate::assert_never!($cond, "") };
($cond:expr, $($fmt:tt)*) => {{
let value = $cond;
if value {