enable needless_pass_by_value lint

This commit is contained in:
Charles Hall 2024-05-14 18:41:37 -07:00
parent c4a9bca16f
commit a636405bed
No known key found for this signature in database
GPG key ID: 7B8E0645816E07CF
3 changed files with 10 additions and 9 deletions

View file

@ -43,8 +43,8 @@ pub(crate) async fn get_relating_events_with_rel_type_and_event_type_route(
sender_user,
&body.room_id,
&body.event_id,
Some(body.event_type.clone()),
Some(body.rel_type.clone()),
Some(&body.event_type),
Some(&body.rel_type),
from,
to,
limit,
@ -95,7 +95,7 @@ pub(crate) async fn get_relating_events_with_rel_type_route(
&body.room_id,
&body.event_id,
None,
Some(body.rel_type.clone()),
Some(&body.rel_type),
from,
to,
limit,