We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 56157cf + 9ffe156 commit 6c602d1Copy full SHA for 6c602d1
packages/vm/src/compatibility.rs
@@ -175,10 +175,7 @@ fn check_interface_version(module: &ParsedWasm) -> VmResult<()> {
175
} else {
176
// Exactly one interface version found
177
let version_str = first_interface_version_export.as_str();
178
- if SUPPORTED_INTERFACE_VERSIONS
179
- .iter()
180
- .any(|&v| v == version_str)
181
- {
+ if SUPPORTED_INTERFACE_VERSIONS.contains(&version_str) {
182
Ok(())
183
184
Err(VmError::static_validation_err(
0 commit comments