Update modalkit and modalkit-ratatui to SHA 45855daeeb (#358)

This commit is contained in:
Jihyeon Kim (김지현) 2025-05-16 12:09:12 +09:00 committed by GitHub
parent ebd89423e9
commit 6e923f3878
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 455 additions and 106 deletions

View file

@ -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));