mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-17 15:51:23 +01:00
enable mixed_attributes_style lint
This commit is contained in:
parent
41a5e6fb50
commit
92d9f81a78
2 changed files with 5 additions and 4 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue