mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-18 05:18:30 +00:00
Move to sigp fork of yaml-rust
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user