(
fields: &mut Vec<(&'static str, &'a serde_json::Value)>,
key: &'static str,
value: Option<&'a serde_json::Value>,
)
| 128 | }; |
| 129 | |
| 130 | fn put<'a>( |
| 131 | fields: &mut Vec<(&'static str, &'a serde_json::Value)>, |
| 132 | key: &'static str, |
| 133 | value: Option<&'a serde_json::Value>, |
| 134 | ) { |
| 135 | if let Some(value) = value { |
| 136 | if !value.is_null() { |
| 137 | fields.push((key, value)); |
| 138 | } |
| 139 | } |
| 140 | } |
| 141 | |
| 142 | put(&mut fields, "model", message.get("model")); |
| 143 |
no outgoing calls
no test coverage detected