From a670ec76cd3afcef843ce3e376869fa76fdeb87c Mon Sep 17 00:00:00 2001 From: folex <0xdxdy@gmail.com> Date: Fri, 14 Aug 2020 13:54:52 +0300 Subject: [PATCH] Fix .wasm module extension check (#17) --- fluence-faas/src/faas.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fluence-faas/src/faas.rs b/fluence-faas/src/faas.rs index da513786..83719975 100644 --- a/fluence-faas/src/faas.rs +++ b/fluence-faas/src/faas.rs @@ -50,7 +50,7 @@ impl<'a> ModulesLoadStrategy<'a> { match self { ModulesLoadStrategy::All => true, 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"), } }