Fluence FaaS refactoring (#36)

This commit is contained in:
vms
2020-10-21 22:21:16 +03:00
committed by GitHub
parent 693e8cdfb1
commit 5aea5a53ad
60 changed files with 1557 additions and 424 deletions

View File

@ -34,7 +34,7 @@ pub fn extract_text_wit(wasm_file_path: PathBuf) -> Result<String, WITParserErro
pub fn extract_wit(wasmer_module: &WasmerModule) -> Result<Interfaces<'_>, WITParserError> {
let wit_sections = wasmer_module
.custom_sections(WIT_SECTION_NAME)
.ok_or_else(|| WITParserError::NoWITSection)?;
.ok_or(WITParserError::NoWITSection)?;
if wit_sections.len() > 1 {
return Err(WITParserError::MultipleWITSections);