Move to sigp fork of yaml-rust

This commit is contained in:
Paul Hauner 2019-05-14 16:56:13 +10:00
parent 1835ca8fd6
commit 123045f0a3
No known key found for this signature in database
GPG Key ID: D362883A9218FCC6
2 changed files with 2 additions and 1 deletions

View File

@ -12,4 +12,4 @@ serde_derive = "1.0"
serde_yaml = "0.8"
ssz = { path = "../../eth2/utils/ssz" }
types = { path = "../../eth2/types" }
yaml-rust = "0.4"
yaml-rust = { git = "https://github.com/sigp/yaml-rust", branch = "escape_all_str"}

View File

@ -17,6 +17,7 @@ pub fn extract_yaml_by_index(yaml: &str, index: usize) -> String {
pub fn yaml_to_string(yaml: &Yaml) -> String {
let mut out_str = String::new();
let mut emitter = YamlEmitter::new(&mut out_str);
emitter.escape_all_strings(true);
emitter.dump(yaml).unwrap();
out_str