enable implicit_clone lint

This commit is contained in:
Charles Hall 2024-05-14 17:08:36 -07:00
parent b0f65913f3
commit ebae8ceeb0
No known key found for this signature in database
GPG key ID: 7B8E0645816E07CF
17 changed files with 24 additions and 23 deletions

View file

@ -31,7 +31,7 @@ pub(crate) async fn send_state_event_for_key_route(
&body.room_id,
&body.event_type,
&body.body.body, // Yes, I hate it too
body.state_key.to_owned(),
body.state_key.clone(),
)
.await?;
@ -64,7 +64,7 @@ pub(crate) async fn send_state_event_for_empty_key_route(
&body.room_id,
&body.event_type.to_string().into(),
&body.body.body,
body.state_key.to_owned(),
body.state_key.clone(),
)
.await?;