mirror of
https://github.com/sharkdp/bat.git
synced 2025-01-31 10:11:07 +00: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> {
|
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![],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user