mirror of
https://github.com/sharkdp/bat.git
synced 2025-08-09 15:55:10 +02:00
Updated version of serde_yaml
to 0.9
This commit is contained in:
@ -23,7 +23,8 @@ fn main() {
|
||||
}],
|
||||
};
|
||||
|
||||
let bytes = serde_yaml::to_vec(&person).unwrap();
|
||||
let mut bytes = Vec::with_capacity(128);
|
||||
serde_yaml::to_writer(&mut bytes, &person).unwrap();
|
||||
PrettyPrinter::new()
|
||||
.language("yaml")
|
||||
.line_numbers(true)
|
||||
|
Reference in New Issue
Block a user