enable unneeded_field_pattern lint

This commit is contained in:
Charles Hall 2024-05-12 19:14:59 -07:00
parent 2b6a933538
commit da842c6499
No known key found for this signature in database
GPG key ID: 7B8E0645816E07CF
3 changed files with 3 additions and 5 deletions

View file

@ -51,8 +51,7 @@ pub(crate) async fn login_route(body: Ruma<login::v3::Request>) -> Result<login:
identifier,
password,
user,
address: _,
medium: _,
..
}) => {
let user_id = if let Some(UserIdentifier::UserIdOrLocalpart(user_id)) = identifier {
UserId::parse_with_server_name(