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

@ -61,6 +61,7 @@ undocumented_unsafe_blocks = "warn"
unnecessary_safety_comment = "warn"
unnecessary_safety_doc = "warn"
unnecessary_self_imports = "warn"
unneeded_field_pattern = "warn"
unseparated_literal_suffix = "warn"
verbose_file_reads = "warn"
wildcard_dependencies = "warn"

View file

@ -130,9 +130,7 @@ pub(crate) async fn get_content_as_filename_route(
let mxc = format!("mxc://{}/{}", body.server_name, body.media_id);
if let Some(FileMeta {
content_disposition: _,
content_type,
file,
content_type, file, ..
}) = services().media.get(mxc.clone()).await?
{
Ok(get_content_as_filename::v3::Response {

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(