1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#![allow(clippy::integer_arithmetic)] mod cli_output; pub mod display; pub use cli_output::*; pub trait QuietDisplay: std::fmt::Display { fn write_str(&self, w: &mut dyn std::fmt::Write) -> std::fmt::Result { write!(w, "{}", self) } } pub trait VerboseDisplay: std::fmt::Display { fn write_str(&self, w: &mut dyn std::fmt::Write) -> std::fmt::Result { write!(w, "{}", self) } }