fix lints revealed by tracing change

<https://github.com/tokio-rs/tracing/pull/3108> changes #[instrument] so
that several lints that were previously hidden on instrumented functions
are now visible.
This commit is contained in:
Olivia Lee 2025-07-20 13:55:06 -07:00 committed by Charles Hall
parent 13203d3b45
commit 2648991092
12 changed files with 37 additions and 40 deletions

View file

@ -147,6 +147,7 @@ pub(crate) enum AllowLoopbackRequests {
No,
}
#[allow(clippy::too_many_lines)]
#[tracing::instrument(skip(request, log_error, allow_loopback), fields(url))]
pub(crate) async fn send_request<T>(
destination: &ServerName,
@ -1883,7 +1884,7 @@ pub(crate) async fn create_invite_route(
services().rooms.state_cache.update_membership(
&body.room_id,
&invited_user,
MembershipState::Invite,
&MembershipState::Invite,
&sender,
Some(invite_state),
true,