diff options
author | Thomas Voss <mail@thomasvoss.com> | 2023-08-03 17:52:25 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2023-08-03 17:52:25 +0200 |
commit | 97f5ace71262a74f89a0e6e31ec7b849d81af147 (patch) | |
tree | e5385217b8eadaa1e02483414bcd333fae9273bf /src | |
parent | e66f62cf543f231e0746c5aaf1ca546871a0448b (diff) |
Use $($fmt)+ instead of $($fmt)*
Diffstat (limited to 'src')
-rw-r--r-- | src/lib.rs | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -44,7 +44,7 @@ pub use std::{env, process}; macro_rules! err_code { ($code:expr, $($fmt:tt)+) => { eprint!("{}: ", $crate::env::args().next().unwrap_or("Error".into())); - eprintln!($($fmt)*); + eprintln!($($fmt)+); $crate::process::exit($code); }; } @@ -76,7 +76,7 @@ macro_rules! err_code { #[macro_export] macro_rules! err { ($($fmt:tt)+) => { - $crate::err_code!(1, $($fmt)*); + $crate::err_code!(1, $($fmt)+); } } @@ -119,6 +119,6 @@ macro_rules! err { macro_rules! warn { ($($fmt:tt)+) => { eprint!("{}: ", $crate::env::args().next().unwrap_or("Error".into())); - eprintln!($($fmt)*); + eprintln!($($fmt)+); }; } |