mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-17 07:41: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
|
|
@ -72,7 +72,6 @@ wildcard_dependencies = "warn"
|
||||||
missing_errors_doc = "allow"
|
missing_errors_doc = "allow"
|
||||||
missing_panics_doc = "allow"
|
missing_panics_doc = "allow"
|
||||||
|
|
||||||
mixed_attributes_style = "allow"
|
|
||||||
multiple_bound_locations = "allow"
|
multiple_bound_locations = "allow"
|
||||||
option_as_ref_cloned = "allow"
|
option_as_ref_cloned = "allow"
|
||||||
thread_local_initializer_can_be_made_const = "allow"
|
thread_local_initializer_can_be_made_const = "allow"
|
||||||
|
|
|
||||||
|
|
@ -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
|
/// Note: You can use [`GET /_matrix/client/r0/login`](get_login_types_route) to
|
||||||
/// see supported login types.
|
/// 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(
|
pub(crate) async fn login_route(
|
||||||
body: Ar<login::v3::Request>,
|
body: Ar<login::v3::Request>,
|
||||||
) -> Result<Ra<login::v3::Response>> {
|
) -> Result<Ra<login::v3::Response>> {
|
||||||
// To allow deprecated login methods
|
|
||||||
#![allow(deprecated)]
|
|
||||||
// Validate login method
|
// Validate login method
|
||||||
// TODO: Other login methods
|
// TODO: Other login methods
|
||||||
let user_id = match &body.login_info {
|
let user_id = match &body.login_info {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue