Update modalkit and modalkit-ratatui to SHA 45855daeeb (#358)
This commit is contained in:
committed by
GitHub
parent
ebd89423e9
commit
6e923f3878
@@ -63,7 +63,7 @@ pub fn spawn_insert_preview(
|
||||
let img = download_or_load(event_id.to_owned(), source, media, cache_dir)
|
||||
.await
|
||||
.map(std::io::Cursor::new)
|
||||
.map(image::io::Reader::new)
|
||||
.map(image::ImageReader::new)
|
||||
.map_err(IambError::Matrix)
|
||||
.and_then(|reader| reader.with_guessed_format().map_err(IambError::IOError))
|
||||
.and_then(|reader| reader.decode().map_err(IambError::Image));
|
||||
|
||||
Reference in New Issue
Block a user