update deps and work with kittage 0.4 (#147)

* update deps and work with kittage 0.4

* fix: fmt

* also update msrv now that we have if-let arms
This commit is contained in:
June
2026-04-19 12:01:13 -05:00
committed by GitHub
parent 7448fc73c5
commit 421401c7a7
5 changed files with 276 additions and 235 deletions
+3 -3
View File
@@ -1,13 +1,13 @@
use std::{
io::Cursor,
num::NonZeroUsize,
num::{NonZeroU32, NonZeroUsize},
time::{SystemTime, UNIX_EPOCH}
};
use flume::{Receiver, SendError, Sender, TryRecvError};
use futures_util::stream::StreamExt as _;
use image::{DynamicImage, codecs::pnm::PnmDecoder};
use kittage::{NumberOrId, action::NONZERO_ONE};
use kittage::NumberOrId;
use ratatui::layout::Rect;
use ratatui_image::{
Resize,
@@ -164,7 +164,7 @@ pub async fn run_conversion_loop(
};
// if ur pdf has 4 billion pages then you deserve to suffer
img.num_or_id = NumberOrId::Id(NONZERO_ONE.saturating_add(page_num as u32));
img.num_or_id = NumberOrId::Id(NonZeroU32::MIN.saturating_add(page_num as u32));
ConvertedImage::Kitty {
img: MaybeTransferred::NotYet(img),