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 {