mirror of
https://gitlab.com/pulsechaincom/lighthouse-pulse.git
synced 2025-01-07 03:22:20 +00:00
Move to sigp fork of yaml-rust
This commit is contained in:
parent
1835ca8fd6
commit
123045f0a3
@ -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"}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user