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

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