1
0
mirror of https://github.com/sharkdp/bat synced 2026-07-24 17:13:19 +00:00

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
+5 -4
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![],