From 92d9f81a78281b42e54de19d9a6a0ada594cb6a4 Mon Sep 17 00:00:00 2001 From: Charles Hall Date: Tue, 21 May 2024 22:08:00 -0700 Subject: [PATCH] enable `mixed_attributes_style` lint --- Cargo.toml | 1 - src/api/client_server/session.rs | 8 +++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 9e717e76..c780ad34 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -72,7 +72,6 @@ wildcard_dependencies = "warn" missing_errors_doc = "allow" missing_panics_doc = "allow" -mixed_attributes_style = "allow" multiple_bound_locations = "allow" option_as_ref_cloned = "allow" thread_local_initializer_can_be_made_const = "allow" diff --git a/src/api/client_server/session.rs b/src/api/client_server/session.rs index 6d740acc..b11d6f31 100644 --- a/src/api/client_server/session.rs +++ b/src/api/client_server/session.rs @@ -51,12 +51,14 @@ pub(crate) async fn get_login_types_route( /// /// Note: You can use [`GET /_matrix/client/r0/login`](get_login_types_route) to /// see supported login types. -#[allow(clippy::too_many_lines)] +#[allow( + // To allow deprecated login methods + deprecated, + clippy::too_many_lines, +)] pub(crate) async fn login_route( body: Ar, ) -> Result> { - // To allow deprecated login methods - #![allow(deprecated)] // Validate login method // TODO: Other login methods let user_id = match &body.login_info {