diff options
author | sharkdp <davidpeter@web.de> | 2021-01-09 15:27:28 +0100 |
---|---|---|
committer | David Peter <sharkdp@users.noreply.github.com> | 2021-01-09 19:43:39 +0100 |
commit | 09fbabb0b8b278d098765684cdfbfcd928bf209a (patch) | |
tree | f68a3921a58857b05376d1d235c4db512c6f7d3a | |
parent | de6cb75f4bb5d6e65301b5e9a9890228760da4c4 (diff) |
Add a Default implementation for PrettyPrinter
-rw-r--r-- | src/pretty_printer.rs | 6 |
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>, |