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.
1 parent 56157cf commit c4fe2fbCopy full SHA for c4fe2fb
packages/vm/src/compatibility.rs
@@ -175,9 +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)
+ if SUPPORTED_INTERFACE_VERSIONS.contains(&version_str)
181
{
182
Ok(())
183
0 commit comments