aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 8726de5..691bc34 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -42,7 +42,7 @@ pub use std::{env, process};
/// [`errx(3)`]: https://man.openbsd.org/err.3
#[macro_export]
macro_rules! err_code {
- ($code:tt, $($fmt:tt)+) => {
+ ($code:expr, $($fmt:tt)+) => {
eprint!("{}: ", $crate::env::args().next().unwrap_or("Error".into()));
eprintln!($($fmt)*);
$crate::process::exit($code);