use public accessors, not private fields for WasmFuncType params/returns

This commit is contained in:
Nick Fitzgerald
2021-09-17 10:31:13 -07:00
parent b39f087414
commit 833c93b25c

View File

@@ -117,13 +117,13 @@ impl MatchCx<'_> {
let render = |ty: &WasmFuncType| {
let params = ty
.params
.params()
.iter()
.map(|s| s.to_string())
.collect::<Vec<_>>()
.join(", ");
let returns = ty
.returns
.returns()
.iter()
.map(|s| s.to_string())
.collect::<Vec<_>>()