Updated version of serde_yaml to 0.9

This commit is contained in:
Raghav-Bell authored and David Peter committed 2023-10-04 12:42:01 +02:00
1 parent 9f795dd947
commit 8e35a56712
4 files changed
+40 -10

No files matched your search

+2 -1
View File
@@ -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)