fix edition 2024 lints

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk 2025-02-25 18:38:12 +00:00 committed by June Clementine Strawberry
parent cbf207bd1f
commit a67ab75417
36 changed files with 60 additions and 72 deletions

View file

@ -172,7 +172,7 @@ impl std::fmt::Display for BlurhashingError {
#[cfg(feature = "blurhashing")]
| Self::ImageError(e) =>
write!(f, "There was an error with the image loading library => {e}")?,
};
}
Ok(())
}

View file

@ -283,7 +283,7 @@ async fn location_request(&self, location: &str) -> Result<FileMeta> {
.map_err(Into::into)
.map(|content| FileMeta {
content: Some(content),
content_type: content_type.clone().map(Into::into),
content_type: content_type.clone(),
content_disposition: Some(make_content_disposition(
content_disposition.as_ref(),
content_type.as_deref(),