enable assigning_clones lint

This commit is contained in:
Charles Hall 2024-05-21 22:03:31 -07:00
parent 793d809ac6
commit c9859a9b2d
No known key found for this signature in database
GPG key ID: 7B8E0645816E07CF
6 changed files with 14 additions and 14 deletions

View file

@ -60,7 +60,7 @@ pub(crate) async fn update_device_route(
.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,