(raw: &mut Value, key: &str, value: Value)
| 583 | } |
| 584 | |
| 585 | fn insert_if_missing(raw: &mut Value, key: &str, value: Value) { |
| 586 | if let Some(obj) = raw.as_object_mut() { |
| 587 | obj.entry(key.to_string()).or_insert(value); |
| 588 | } |
| 589 | } |
| 590 | |
| 591 | fn value_string(raw: &Value, key: &str) -> Option<String> { |
| 592 | raw.get(key) |
no outgoing calls
no test coverage detected