diff options
| author | Thomas Voss <mail@thomasvoss.com> | 2026-03-04 02:17:07 +0100 |
|---|---|---|
| committer | Thomas Voss <mail@thomasvoss.com> | 2026-03-04 02:17:07 +0100 |
| commit | 21478939ed1d3d2862e7eb5f39107615a52cf29a (patch) | |
| tree | ca7f6350ea909236ba4d9943fa808bfe8032cf68 /oryxc | |
| parent | 5a0fdbc104bcf7b0da5405a664a8ee60e07b887f (diff) | |
Use tabs in macro_rules
Apparently rustfmt doesn’t detect spaces vs tabs in macro_rules
Diffstat (limited to 'oryxc')
| -rw-r--r-- | oryxc/src/compiler.rs | 2 | ||||
| -rw-r--r-- | oryxc/src/errors.rs | 14 |
2 files changed, 8 insertions, 8 deletions
diff --git a/oryxc/src/compiler.rs b/oryxc/src/compiler.rs index f578375..8fdd53f 100644 --- a/oryxc/src/compiler.rs +++ b/oryxc/src/compiler.rs @@ -130,7 +130,7 @@ where macro_rules! fdata_read { ($state:expr, $file:expr, $($field:ident),+ $(,)?) => { - #[allow(unused_parens)] + #[allow(unused_parens)] let ($($field),+) = { let fdata = $state.files.get(&$file).unwrap(); ($(fdata.$field.clone()),+) 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); }}; } |