summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorsharkdp <davidpeter@web.de>2021-01-09 15:27:28 +0100
committerDavid Peter <sharkdp@users.noreply.github.com>2021-01-09 19:43:39 +0100
commit09fbabb0b8b278d098765684cdfbfcd928bf209a (patch)
treef68a3921a58857b05376d1d235c4db512c6f7d3a /src
parentde6cb75f4bb5d6e65301b5e9a9890228760da4c4 (diff)
Add a Default implementation for PrettyPrinter
Diffstat (limited to 'src')
-rw-r--r--src/pretty_printer.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/pretty_printer.rs b/src/pretty_printer.rs
index cdf22df9..272e073b 100644
--- a/src/pretty_printer.rs
+++ b/src/pretty_printer.rs
@@ -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>,