Fix TODOs

Fixes non UTF8 filenames by not converting to `String` for no reason.

Also removes TODO for the fill-page feature, which already exists.
This commit is contained in:
Max Dexheimer
2026-01-22 15:32:59 +01:00
parent 828db8aed3
commit 577141e201
4 changed files with 4 additions and 9 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
use std::{collections::VecDeque, num::NonZeroUsize, thread::sleep, time::Duration};
use std::{collections::VecDeque, num::NonZeroUsize, path::Path, thread::sleep, time::Duration};
use flume::{Receiver, SendError, Sender, TryRecvError};
use mupdf::{
@@ -80,7 +80,7 @@ pub fn fill_default<T: Default>(vec: &mut Vec<T>, size: usize) {
// probably be more performant if accessed by-value instead of through a reference. Probably.
#[expect(clippy::needless_pass_by_value, clippy::too_many_arguments)]
pub fn start_rendering(
path: &str,
path: &Path,
sender: Sender<Result<RenderInfo, RenderError>>,
receiver: Receiver<RenderNotif>,
col_h: u16,