Zero warnings on Windows and Linux, clippy included (W-02, L-02)

rustc and clippy are clean for the whole workspace, every target, on
both. clippy --fix moved test modules last and took the shorter
forms; long types got named aliases; ElyTree's form takes its title
and button words as one pair.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
ZacharyZhang-NYandClaude Opus 5.5 committed 2026-10-10 18:36:06 -04:00
1 parent c96d39a342
commit 9c9f9ab8f9
26 files changed
+73 -60

No files matched your search

+6 -5
View File
@@ -205,11 +205,12 @@ fn big_png(path: &Path, side: u32) {
let mut raw = Vec::new();
let mut seed = 7u32;
for _ in 0..side {
raw.push(0);
for _ in 0..side * 3 {
// Each row: filter byte none, then its noise.
let noise = (0..side * 3).map(|_| {
seed = seed.wrapping_mul(1_103_515_245).wrapping_add(12_345);
raw.push((seed >> 16) as u8);
}
(seed >> 16) as u8
});
raw.extend(std::iter::once(0).chain(noise));
}
// zlib with stored blocks; Adler-32 at the end.
let mut zlib = vec![0x78, 0x01];
@@ -246,7 +247,7 @@ fn a_failed_open_keeps_no_memory() {
};
// MuPDF's 256 MB store fills first; then nothing grows.
for _ in 0..70 {
let refused = worker.open(&png).err().expect("not a PDF");
let refused = worker.open(&png).expect_err("not a PDF");
assert!(refused.to_string().contains("not a PDF"), "{refused}");
}
let before = rss(worker.pid());