aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2023-08-03 17:52:25 +0200
committerThomas Voss <mail@thomasvoss.com> 2023-08-03 17:52:25 +0200
commit97f5ace71262a74f89a0e6e31ec7b849d81af147 (patch)
treee5385217b8eadaa1e02483414bcd333fae9273bf /src/lib.rs
parente66f62cf543f231e0746c5aaf1ca546871a0448b (diff)
Use $($fmt)+ instead of $($fmt)*
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 691bc34..2cb67e3 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -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)+);
};
}