intermodal/src/errln.rs
Casey Rodarmor 9f83661374
Configure clippy and lint on push
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
2020-04-07 18:55:45 -07:00

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)?;
};
}