mirror of
https://github.com/crate-ci/typos.git
synced 2024-11-28 20:11:05 -05:00
fix: Add missing traits
This commit is contained in:
parent
b7d412c20e
commit
77188df1a3
1 changed files with 4 additions and 0 deletions
|
@ -107,12 +107,14 @@ pub trait Report: Send + Sync {
|
||||||
fn report(&self, msg: Message);
|
fn report(&self, msg: Message);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[derive(Copy, Clone, Debug)]
|
||||||
pub struct PrintSilent;
|
pub struct PrintSilent;
|
||||||
|
|
||||||
impl Report for PrintSilent {
|
impl Report for PrintSilent {
|
||||||
fn report(&self, _msg: Message) {}
|
fn report(&self, _msg: Message) {}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[derive(Copy, Clone, Debug)]
|
||||||
pub struct PrintBrief;
|
pub struct PrintBrief;
|
||||||
|
|
||||||
impl Report for PrintBrief {
|
impl Report for PrintBrief {
|
||||||
|
@ -153,6 +155,7 @@ impl Report for PrintBrief {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[derive(Copy, Clone, Debug)]
|
||||||
pub struct PrintLong;
|
pub struct PrintLong;
|
||||||
|
|
||||||
impl Report for PrintLong {
|
impl Report for PrintLong {
|
||||||
|
@ -222,6 +225,7 @@ fn print_long_correction(msg: Correction) {
|
||||||
writeln!(handle, "{} |", line_indent).unwrap();
|
writeln!(handle, "{} |", line_indent).unwrap();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[derive(Copy, Clone, Debug)]
|
||||||
pub struct PrintJson;
|
pub struct PrintJson;
|
||||||
|
|
||||||
impl Report for PrintJson {
|
impl Report for PrintJson {
|
||||||
|
|
Loading…
Reference in a new issue