9f83661374
Enable as many lints as I can stand. I'll definitely add more exceptions as `clippy::pedantic` and `clippy::restriction` wear me down. type: testing
12 lines
321 B
Rust
12 lines
321 B
Rust
macro_rules! errln {
|
|
($env:expr) => {
|
|
writeln!($env.err, "").context(crate::error::Stderr)?;
|
|
};
|
|
($env:expr, $fmt:expr) => {
|
|
writeln!($env.err, $fmt).context(crate::error::Stderr)?;
|
|
};
|
|
($env:expr, $fmt:expr, $($arg:tt)*) => {
|
|
writeln!($env.err, $fmt, $($arg)*).context(crate::error::Stderr)?;
|
|
};
|
|
}
|