From b165da91125a15eecb75205e61c72b52667226d9 Mon Sep 17 00:00:00 2001 From: Michal Date: Sat, 23 Jul 2022 21:49:10 +0100 Subject: [PATCH] Changed formatting for crash!() and log!() file:line formatting --- src/internal/strings.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/internal/strings.rs b/src/internal/strings.rs index 5e54c24..c409863 100755 --- a/src/internal/strings.rs +++ b/src/internal/strings.rs @@ -17,14 +17,14 @@ macro_rules! info { #[macro_export] macro_rules! log { ($verbose:expr, $($arg:tt)+) => { - $crate::internal::strings::log_fn(&format!("{}:{} {}", file!(), line!(), format!($($arg)+)), $verbose); + $crate::internal::strings::log_fn(&format!("[{}:{}] {}", file!(), line!(), format!($($arg)+)), $verbose); } } #[macro_export] macro_rules! crash { ($exit_code:expr, $($arg:tt)+) => { - $crate::internal::strings::crash_fn(&format!("{}:{} {}", file!(), line!(), format!($($arg)+)), $exit_code) + $crate::internal::strings::crash_fn(&format!("[{}:{}] {}", file!(), line!(), format!($($arg)+)), $exit_code) } }