aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
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)+);
};
}