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> { impl<'a> PrettyPrinter<'a> {
pub fn new() -> Self { pub fn new() -> Self {
let mut config = Config::default(); let config = Config {
colored_output: true,
config.colored_output = true; true_color: true,
config.true_color = true; ..Default::default()
};
PrettyPrinter { PrettyPrinter {
inputs: vec![], inputs: vec![],