From eb03b1a1ea320376ca5cc4cbda6f41579dd1b899 Mon Sep 17 00:00:00 2001 From: Jason Travis Smith Date: Thu, 12 Jan 2017 15:04:15 -0500 Subject: [PATCH] Fixed the generate_panic macro. This now just passes all the arguments to panic directly. This appears to work well with or without the Rust standard library. --- src/macros.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/macros.rs b/src/macros.rs index 5adba6c..0065ee6 100644 --- a/src/macros.rs +++ b/src/macros.rs @@ -6,7 +6,7 @@ macro_rules! generate_panic { ($($arg: tt)+) => ({ - panic!(::std::fmt::format(format_args!($($arg)+))); + panic!($($arg)+); }) }