From 21478939ed1d3d2862e7eb5f39107615a52cf29a Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Wed, 4 Mar 2026 02:17:07 +0100 Subject: Use tabs in macro_rules MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Apparently rustfmt doesn’t detect spaces vs tabs in macro_rules --- oryxc/src/errors.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'oryxc/src/errors.rs') diff --git a/oryxc/src/errors.rs b/oryxc/src/errors.rs index 9cc27cc..290abc2 100644 --- a/oryxc/src/errors.rs +++ b/oryxc/src/errors.rs @@ -46,9 +46,9 @@ pub fn progname() -> &'static OsString { #[macro_export] macro_rules! warn { ($err:expr, $fmt:literal, $($arg:tt)*) => {{ - use crate::errors::progname; + use crate::errors::progname; let _ = eprintln!("{}: {}: {}", progname().display(), - format_args!($fmt, $($arg)*), $err); + format_args!($fmt, $($arg)*), $err); }}; ($err:expr, $fmt:literal) => {{ @@ -56,7 +56,7 @@ macro_rules! warn { }}; ($err:expr) => {{ - use crate::errors::progname; + use crate::errors::progname; let _ = eprintln!("{}: {}", progname().display(), $err); }}; } @@ -64,8 +64,8 @@ macro_rules! warn { #[macro_export] macro_rules! err { ($err:expr, $fmt:literal, $($arg:tt)*) => {{ - use crate::warn; - warn!($err, $fmt, $($arg)*); + use crate::warn; + warn!($err, $fmt, $($arg)*); std::process::exit(1); }}; @@ -74,8 +74,8 @@ macro_rules! err { }}; ($err:expr) => {{ - use crate::warn; - warn!($err); + use crate::warn; + warn!($err); std::process::exit(1); }}; } -- cgit v1.2.3