From e23bfafb32a235fdb60ba279ea68b5aa381c2110 Mon Sep 17 00:00:00 2001 From: Lukas Wirth Date: Thu, 14 Jan 2021 22:43:09 +0100 Subject: Fix assert_never invoking assert_always --- crates/stdx/src/macros.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { /// 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 { -- cgit v1.2.3