Move to the wasmer-wit 0.17.24 (#56)

This commit is contained in:
vms
2020-12-29 17:51:13 +03:00
committed by GitHub
parent dc43acfc88
commit 8499033720
29 changed files with 142 additions and 123 deletions

View File

@@ -18,7 +18,7 @@ use super::errors::FCEWITInterfacesError;
use wasmer_wit::interpreter::Instruction;
use wasmer_wit::ast::*;
use wasmer_wit::types::RecordType;
use wasmer_wit::IRecordType;
use multimap::MultiMap;
use std::iter::Iterator;
@@ -110,7 +110,7 @@ impl<'a> FCEWITInterfaces<'a> {
self.types.iter()
}
pub fn record_types(&self) -> impl Iterator<Item = (u64, &Rc<RecordType>)> {
pub fn record_types(&self) -> impl Iterator<Item = (u64, &Rc<IRecordType>)> {
self.types.iter().enumerate().filter_map(|(id, t)| match t {
WITAstType::Record(r) => Some((id as u64, r)),
_ => None,