Add a Default implementation for PrettyPrinter

This commit is contained in:
sharkdp authored and David Peter committed 2021-01-09 19:43:39 +01:00
1 parent de6cb75f4b
commit 09fbabb0b8
1 file changed
+6
+6
View File
@@ -320,6 +320,12 @@ impl<'a> PrettyPrinter<'a> {
}
}
impl Default for PrettyPrinter<'_> {
fn default() -> Self {
Self::new()
}
}
/// An input source for the pretty printer.
pub struct Input<'a> {
input: input::Input<'a>,