Skip to content

Commit fdeeebb

Browse files
hyperpolymathclaude
andcommitted
chore(verify): collapse MemorySection match guard (clippy::collapsible_match)
Fold the inner `if reader.count() > 0` into the match-arm guard in verify_from_module's L13 module-isolation pass. Pure cleanup, no behaviour change. Clears the one pre-existing clippy warning flagged and deferred during the Tier-2 work; `cargo clippy -p typed-wasm-verify --all-features --all-targets` is now clean. 77 verify unit tests + cross-compat green. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 6864deb commit fdeeebb

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

crates/typed-wasm-verify/src/verify.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -320,10 +320,8 @@ pub fn verify_from_module(wasm_bytes: &[u8]) -> Result<(), VerifyError> {
320320
}
321321
}
322322
}
323-
Payload::MemorySection(reader) => {
324-
if reader.count() > 0 {
325-
has_own_memory = true;
326-
}
323+
Payload::MemorySection(reader) if reader.count() > 0 => {
324+
has_own_memory = true;
327325
}
328326
Payload::CustomSection(reader) if reader.name() == OWNERSHIP_SECTION_NAME => {
329327
ownership_payload = Some(reader.data().to_vec());

0 commit comments

Comments
 (0)