intermodal/src/print.rs
Casey Rodarmor 1532113782
Print individual file torrent verification errors
If torrent verification fails, print all errors with individual files.

type: changed
2020-04-07 19:01:26 -07:00

12 lines
245 B
Rust

use crate::common::*;
pub(crate) trait Print {
fn print(&self, stream: &mut OutputStream) -> io::Result<()>;
fn println(&self, stream: &mut OutputStream) -> io::Result<()> {
self.print(stream)?;
writeln!(stream)?;
Ok(())
}
}