Fix some reviewed items

This commit is contained in:
Lachlan Sneff
2019-01-29 12:49:51 -08:00
parent d73c7015fb
commit 767fdbd950
6 changed files with 31 additions and 7 deletions

View File

@ -106,7 +106,7 @@ impl AnyfuncTable {
if let Some(slot) = self.backing.get_mut(index as usize) {
let anyfunc = match element.inner {
AnyfuncInner::Host { ptr, signature } => {
let sig_index = SigRegistry.lookup_sigindex(signature);
let sig_index = SigRegistry.lookup_sig_index(signature);
let sig_id = vm::SigId(sig_index.index() as u32);
vm::Anyfunc {
@ -116,7 +116,7 @@ impl AnyfuncTable {
}
}
AnyfuncInner::Managed(ref func) => {
let sig_index = SigRegistry.lookup_sigindex(Arc::clone(&func.signature));
let sig_index = SigRegistry.lookup_sig_index(Arc::clone(&func.signature));
let sig_id = vm::SigId(sig_index.index() as u32);
vm::Anyfunc {