Browse Source

Fix clippy warnings

ruma-client
Jonas Platte 5 years ago
parent
commit
6510ffa0fa
No known key found for this signature in database
GPG Key ID: CC154DE0E30B7C67
  1. 6
      src/client_server/profile.rs

6
src/client_server/profile.rs

@ -52,8 +52,7 @@ pub async fn set_displayname_route(
"Tried to send displayname update for user not in the room.", "Tried to send displayname update for user not in the room.",
) )
})? })?
.content .content,
.clone(),
) )
.expect("from_value::<Raw<..>> can never fail") .expect("from_value::<Raw<..>> can never fail")
.deserialize() .deserialize()
@ -153,8 +152,7 @@ pub async fn set_avatar_url_route(
"Tried to send displayname update for user not in the room.", "Tried to send displayname update for user not in the room.",
) )
})? })?
.content .content,
.clone(),
) )
.expect("from_value::<Raw<..>> can never fail") .expect("from_value::<Raw<..>> can never fail")
.deserialize() .deserialize()

Loading…
Cancel
Save