mirror of
https://github.com/sharkdp/bat.git
synced 2026-10-28 08:05:55 +00:00
Updated version of serde_yaml to 0.9
This commit is contained in:
1 parent
9f795dd947
commit
8e35a56712
4 files changed
+40
-10
No files matched your search
+2
-1
@@ -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