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