resolve nightly performance assigning_clones lint
Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
parent
4dfd5a7c15
commit
aedb5966fe
5 changed files with 10 additions and 10 deletions
|
@ -51,7 +51,7 @@ pub async fn update_device_route(body: Ruma<update_device::v3::Request>) -> Resu
|
|||
.get_device_metadata(sender_user, &body.device_id)?
|
||||
.ok_or(Error::BadRequest(ErrorKind::NotFound, "Device not found."))?;
|
||||
|
||||
device.display_name = body.display_name.clone();
|
||||
device.display_name.clone_from(&body.display_name);
|
||||
|
||||
services().users.update_device_metadata(sender_user, &body.device_id, &device)?;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue