From 77188df1a39071a5e63420e6341c1a99bc02a5e2 Mon Sep 17 00:00:00 2001 From: Ed Page Date: Mon, 23 Mar 2020 20:27:37 -0500 Subject: [PATCH] fix: Add missing traits --- typos/src/report.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/typos/src/report.rs b/typos/src/report.rs index ac0d435..630b0e1 100644 --- a/typos/src/report.rs +++ b/typos/src/report.rs @@ -107,12 +107,14 @@ pub trait Report: Send + Sync { fn report(&self, msg: Message); } +#[derive(Copy, Clone, Debug)] pub struct PrintSilent; impl Report for PrintSilent { fn report(&self, _msg: Message) {} } +#[derive(Copy, Clone, Debug)] pub struct PrintBrief; impl Report for PrintBrief { @@ -153,6 +155,7 @@ impl Report for PrintBrief { } } +#[derive(Copy, Clone, Debug)] pub struct PrintLong; impl Report for PrintLong { @@ -222,6 +225,7 @@ fn print_long_correction(msg: Correction) { writeln!(handle, "{} |", line_indent).unwrap(); } +#[derive(Copy, Clone, Debug)] pub struct PrintJson; impl Report for PrintJson {