From f6df3e28cb5e220810e42d8652388d80c56cb041 Mon Sep 17 00:00:00 2001 From: YoursFunny Date: Sat, 8 Aug 2026 20:02:06 +0800 Subject: [PATCH] pixiv: drop unneeded mut bindings in ugoira extraction --- crates/x-media/src/site/pixiv/api.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/x-media/src/site/pixiv/api.rs b/crates/x-media/src/site/pixiv/api.rs index 936b292..b5a89e1 100644 --- a/crates/x-media/src/site/pixiv/api.rs +++ b/crates/x-media/src/site/pixiv/api.rs @@ -243,7 +243,7 @@ impl PixivAPI { } // Uniform jpg or png per artwork; sniff the first entry's // magic bytes instead of trusting its filename. - let mut first = archive.by_index(0).map_err(|e| e.to_string())?; + let first = archive.by_index(0).map_err(|e| e.to_string())?; let mut first_bytes = Vec::new(); first .take(64 * 1024 * 1024 + 1) @@ -268,7 +268,7 @@ impl PixivAPI { count += 1; } for i in 1..archive.len() { - let mut entry = archive.by_index(i).map_err(|e| e.to_string())?; + let entry = archive.by_index(i).map_err(|e| e.to_string())?; if entry.size() > 64 * 1024 * 1024 { return Err(format!("frame {i} exceeds size cap")); }