forgejo-todo-checker/src/printer.rs

12 lines
240 B
Rust
Raw Normal View History

//
pub trait Printer {
fn println(&self, message: impl Into<String>);
}
pub struct StandardPrinter;
impl Printer for StandardPrinter {
fn println(&self, message: impl Into<String>) {
println!("{}", message.into());
}
}