From 9eedca78a65542912e89f6a8ad725b293691e5be Mon Sep 17 00:00:00 2001 From: Bulat Fatykh <68301540+gitoutofthere@users.noreply.github.com> Date: Thu, 1 Oct 2026 22:40:19 +0300 Subject: [PATCH] Collapse the IWD fallback read condition Address the only added clippy warning in fork Actions run 36914579707; preserve name matching before the read and fallback after its error. Co-Authored-By: Claude Opus 5.5 --- crates/asset_transport/src/iwd.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/asset_transport/src/iwd.rs b/crates/asset_transport/src/iwd.rs index 4fd763c..cce7ab9 100644 --- a/crates/asset_transport/src/iwd.rs +++ b/crates/asset_transport/src/iwd.rs @@ -456,10 +456,10 @@ pub fn read_iwd_named(games_root: &Path, want: &str) -> Option> { let Ok(mut entry) = archive.by_index(index) else { continue; }; - if entry.name().replace('\\', "/").eq_ignore_ascii_case(&want) { - if let Ok(bytes) = read_entry_bytes(&mut entry, None) { - return Some(bytes); - } + if entry.name().replace('\\', "/").eq_ignore_ascii_case(&want) + && let Ok(bytes) = read_entry_bytes(&mut entry, None) + { + return Some(bytes); } } }