enable mixed_attributes_style lint

This commit is contained in:
Charles Hall 2024-05-21 22:08:00 -07:00
parent 41a5e6fb50
commit 92d9f81a78
No known key found for this signature in database
GPG key ID: 7B8E0645816E07CF
2 changed files with 5 additions and 4 deletions

View file

@ -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"

View file

@ -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<login::v3::Request>,
) -> Result<Ra<login::v3::Response>> {
// To allow deprecated login methods
#![allow(deprecated)]
// Validate login method
// TODO: Other login methods
let user_id = match &body.login_info {