Paul Campbell
9b2da13ed4
All checks were successful
Test / test (push) Successful in 7s
Closes kemitix/forgejo-todo-checker#5
12 lines
275 B
Rust
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());
|
|
}
|
|
}
|