Skip to content

Commit

Permalink
Fixed deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
gammelalf committed Sep 3, 2024
1 parent 043cc64 commit b94bbbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kraken/src/api/handler/files/handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ pub async fn upload_image(
};

tokio::task::spawn_blocking(move || {
let mut reader = image::io::Reader::open(media_file_path(file_uuid))?;
let mut reader = image::ImageReader::open(media_file_path(file_uuid))?;
reader.set_format(image_format);
let image = reader.decode()?;

Expand Down

0 comments on commit b94bbbc

Please sign in to comment.