mirror of
https://github.com/youwen5/iamb.git
synced 2025-06-19 21:29:52 -07:00
Update to ratatui-image@1.0.0 (#241)
This commit is contained in:
parent
a98bbd97be
commit
72d35431de
3 changed files with 4 additions and 4 deletions
4
Cargo.lock
generated
4
Cargo.lock
generated
|
@ -3558,9 +3558,9 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "ratatui-image"
|
||||
version = "0.8.1"
|
||||
version = "1.0.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "5b2b2c9623c63916694d56b7f27358ef81fd6232ffa4858444787ecbcda9f791"
|
||||
checksum = "2264bdb808c89e8395480cfce32c197e75a3d6171063e913bca12e7919a333da"
|
||||
dependencies = [
|
||||
"base64",
|
||||
"dyn-clone",
|
||||
|
|
|
@ -46,7 +46,7 @@ notify-rust = { version = "4.10.0", default-features = false, features = ["zbus"
|
|||
open = "3.2.0"
|
||||
rand = "0.8.5"
|
||||
ratatui = "0.23"
|
||||
ratatui-image = { version = "0.8.1", features = ["serde"] }
|
||||
ratatui-image = { version = "1.0.0", features = ["serde"] }
|
||||
regex = "^1.5"
|
||||
rpassword = "^7.2"
|
||||
serde = "^1.0"
|
||||
|
|
|
@ -100,7 +100,7 @@ pub fn spawn_insert_preview(
|
|||
})
|
||||
.and_then(|(picker, msg, image_preview)| {
|
||||
picker
|
||||
.new_protocol(img, image_preview.size.into(), Resize::Fit)
|
||||
.new_protocol(img, image_preview.size.into(), Resize::Fit(None))
|
||||
.map_err(|err| IambError::Preview(format!("{err:?}")))
|
||||
.map(|backend| (backend, msg))
|
||||
}) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue