mirror of
https://github.com/fluencelabs/marine.git
synced 2024-12-12 06:45:32 +00:00
Fix .wasm module extension check (#17)
This commit is contained in:
parent
77cd79e124
commit
a670ec76cd
@ -50,7 +50,7 @@ impl<'a> ModulesLoadStrategy<'a> {
|
|||||||
match self {
|
match self {
|
||||||
ModulesLoadStrategy::All => true,
|
ModulesLoadStrategy::All => true,
|
||||||
ModulesLoadStrategy::Named(set) => set.contains(module.to_string_lossy().as_ref()),
|
ModulesLoadStrategy::Named(set) => set.contains(module.to_string_lossy().as_ref()),
|
||||||
ModulesLoadStrategy::WasmOnly => module.extension().map_or(false, |e| e == ".wasm"),
|
ModulesLoadStrategy::WasmOnly => module.extension().map_or(false, |e| e == "wasm"),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user