Use the functional update syntax

This commit is contained in:
Mohamed Abdelnour 2021-05-21 15:04:53 +02:00 committed by David Peter
parent 23fd11e806
commit 9702f5256c
1 changed files with 5 additions and 4 deletions

View File

@ -40,10 +40,11 @@ pub struct PrettyPrinter<'a> {
impl<'a> PrettyPrinter<'a> {
pub fn new() -> Self {
let mut config = Config::default();
config.colored_output = true;
config.true_color = true;
let config = Config {
colored_output: true,
true_color: true,
..Default::default()
};
PrettyPrinter {
inputs: vec![],