forgejo-todo-checker/src/printer.rs
Paul Campbell 9b2da13ed4
All checks were successful
Test / test (push) Successful in 7s
feat: Log errors as they are found
Closes kemitix/forgejo-todo-checker#5
2024-09-21 19:09:14 +01:00

12 lines
275 B
Rust

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