mirror of
https://github.com/youwen5/iamb.git
synced 2025-06-20 13:49:52 -07:00
Update modalkit
and modalkit-ratatui
to SHA 45855daeeb
(#358)
This commit is contained in:
parent
ebd89423e9
commit
6e923f3878
5 changed files with 455 additions and 106 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue