Update json literal formatting

This commit is contained in:
Jonas Platte 2020-05-02 11:10:31 +02:00
parent 8e4ff82a83
commit f23d7414ec
No known key found for this signature in database
GPG Key ID: 7D261D771D915378
5 changed files with 10 additions and 9 deletions

View File

@ -453,7 +453,8 @@ mod tests {
#[test]
fn deserialization_structure_mismatch() {
// Missing several required fields.
let error = from_json_value::<EventJson<StartEventContent>>(json!({"from_device": "123"}))
let error =
from_json_value::<EventJson<StartEventContent>>(json!({ "from_device": "123" }))
.unwrap()
.deserialize()
.unwrap_err();