Updated version of serde_yaml to 0.9

This commit is contained in:
Raghav-Bell
2023-10-01 23:14:10 +05:30
committed by David Peter
parent 9f795dd947
commit 8e35a56712
4 changed files with 40 additions and 10 deletions

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)