style: make clippy happier

This commit is contained in:
Timo Kösters 2020-10-07 12:29:19 +02:00
parent 4964e21342
commit 304c53c4f5
No known key found for this signature in database
GPG key ID: 24DA7517711A2BA4
5 changed files with 7 additions and 11 deletions

View file

@ -477,7 +477,7 @@ pub async fn sync_events_route(
})
.and_then(|pdu| {
serde_json::from_value::<Raw<ruma::events::room::member::MemberEventContent>>(
pdu.content.clone(),
pdu.content,
)
.expect("Raw::from_value always works")
.deserialize()