mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-18 08:11:24 +01:00
enable assigning_clones lint
This commit is contained in:
parent
793d809ac6
commit
c9859a9b2d
6 changed files with 14 additions and 14 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue