Fix clippy warnings
This commit is contained in:
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user