From afa9326c819c1fb80795a8a81c2431344c7640d1 Mon Sep 17 00:00:00 2001 From: poma Date: Sun, 24 Mar 2019 11:43:42 +0300 Subject: [PATCH] fix log macros --- src/log.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/log.rs b/src/log.rs index da1ef7d..b912a16 100644 --- a/src/log.rs +++ b/src/log.rs @@ -38,19 +38,19 @@ cfg_if! { } } else { macro_rules! log { - ($($t:tt)*) => (println!("{}", &format_args!($($t)*).to_string())) + ($($t:tt)*) => (println!($($t)*)) } macro_rules! elog { - ($($t:tt)*) => (println!("{}", &format_args!($($t)*).to_string())) + ($($t:tt)*) => (eprintln!($($t)*)) } macro_rules! log_verbose { - ($($t:tt)*) => (if $crate::verbose_flag() { println!("{}", &format_args!($($t)*).to_string()) }) + ($($t:tt)*) => (if $crate::verbose_flag() { println!($($t)*) }) } macro_rules! elog_verbose { - ($($t:tt)*) => (if $crate::verbose_flag() { println!("{}", &format_args!($($t)*).to_string()) }) + ($($t:tt)*) => (if $crate::verbose_flag() { eprintln!($($t)*) }) } pub struct Stopwatch {