mirror of
https://github.com/sharkdp/bat.git
synced 2024-11-29 11:13:43 +01:00
Use the functional update syntax
This commit is contained in:
parent
23fd11e806
commit
9702f5256c
@ -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![],
|
||||
|
Loading…
Reference in New Issue
Block a user