on master help sign in
Add a Default implementation for PrettyPrinter
09fbabbsharkdp
src/pretty_printer.rs+6
@@ -320,6 +320,12 @@ impl<'a> PrettyPrinter<'a> {
320 }
320 }
321}
321}
322
322
323+impl Default for PrettyPrinter<'_> {
324+ fn default() -> Self {
325+ Self::new()
326+ }
327+}
328+
323/// An input source for the pretty printer.
329/// An input source for the pretty printer.
324pub struct Input<'a> {
330pub struct Input<'a> {
325 input: input::Input<'a>,
331 input: input::Input<'a>,