(str: &str)
| 212 | const OPTIONAL_INDICATOR_LEN: usize = OPTIONAL_INDICATOR.len(); |
| 213 | |
| 214 | pub fn remove_optional_indicators(str: &str) -> String { |
| 215 | return str.replace(OPTIONAL_INDICATOR, ""); |
| 216 | } |
| 217 | |
| 218 | /// Given a string that should be Yaml, it calls `build_fn` with that string. |
| 219 | /// The build function/closure should process the Yaml as appropriate and capture any errors and write them to `std_err`. |
no test coverage detected