From 777f3b9686566c6aa50646104dad171b7e7166f3 Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Tue, 22 Oct 2019 23:52:44 +0200 Subject: [PATCH] Re-run `rustfmt` --- src/presence.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/presence.rs b/src/presence.rs index 0ce86b5b..785f3ec5 100644 --- a/src/presence.rs +++ b/src/presence.rs @@ -96,8 +96,7 @@ mod tests { sender: UserId::try_from("@example:localhost").unwrap(), }; - let json = - r#"{"content":{"avatar_url":"mxc://localhost:wefuiwegh8742w","currently_active":false,"last_active_ago":2478593,"presence":"online","status_msg":"Making cupcakes"},"sender":"@example:localhost","type":"m.presence"}"#; + let json = r#"{"content":{"avatar_url":"mxc://localhost:wefuiwegh8742w","currently_active":false,"last_active_ago":2478593,"presence":"online","status_msg":"Making cupcakes"},"sender":"@example:localhost","type":"m.presence"}"#; assert_eq!(to_string(&event).unwrap(), json); } @@ -116,8 +115,7 @@ mod tests { sender: UserId::try_from("@example:localhost").unwrap(), }; - let json = - r#"{"content":{"avatar_url":"mxc://localhost:wefuiwegh8742w","currently_active":false,"last_active_ago":2478593,"presence":"online","status_msg":"Making cupcakes"},"sender":"@example:localhost","type":"m.presence"}"#; + let json = r#"{"content":{"avatar_url":"mxc://localhost:wefuiwegh8742w","currently_active":false,"last_active_ago":2478593,"presence":"online","status_msg":"Making cupcakes"},"sender":"@example:localhost","type":"m.presence"}"#; assert_eq!( serde_json::from_str::>(json)