Fix repetetion
@@ -11,22 +11,22 @@ macro_rules! log {
}
}
macro_rules! error {
- (target: $target:expr, $($arg:tt)*) => { log!(target: $target, "", $($arg)*); }
- ($($arg:tt)*) => { log!("", $($arg)*); }
+ (target: $target:expr, $($arg:tt)+) => { log!(target: $target, "", $($arg)+); }
+ ($($arg:tt)+) => { log!("", $($arg)+); }
}
macro_rules! warn {
(target: $target:expr, $($arg:tt)*) => { log!(target: $target, "", $($arg)*); }
($($arg:tt)*) => { log!("", $($arg)*); }
}
macro_rules! info {
- (target: $target:expr, $($arg:tt)*) => { log!(target: $target, "", $($arg)*); }
- ($($arg:tt)*) => { log!("", $($arg)*); }
+ (target: $target:expr, $($arg:tt)+) => { log!(target: $target, "", $($arg)+); }
+ ($($arg:tt)+) => { log!("", $($arg)+); }
}
macro_rules! debug {
- (target: $target:expr, $($arg:tt)*) => { log!(target: $target, "", $($arg)*); }
- ($($arg:tt)*) => { log!("", $($arg)*); }
+ (target: $target:expr, $($arg:tt)+) => { log!(target: $target, "", $($arg)+); }
+ ($($arg:tt)+) => { log!("", $($arg)+); }
}
macro_rules! trace {
- (target: $target:expr, $($arg:tt)*) => { log!(target: $target, "", $($arg)*); }
- ($($arg:tt)*) => { log!("", $($arg)*); }
+ (target: $target:expr, $($arg:tt)+) => { log!(target: $target, "", $($arg)+); }
+ ($($arg:tt)+) => { log!("", $($arg)+); }
}
