use public accessors, not private fields for WasmFuncType params/returns
This commit is contained in:
@@ -117,13 +117,13 @@ impl MatchCx<'_> {
|
|||||||
|
|
||||||
let render = |ty: &WasmFuncType| {
|
let render = |ty: &WasmFuncType| {
|
||||||
let params = ty
|
let params = ty
|
||||||
.params
|
.params()
|
||||||
.iter()
|
.iter()
|
||||||
.map(|s| s.to_string())
|
.map(|s| s.to_string())
|
||||||
.collect::<Vec<_>>()
|
.collect::<Vec<_>>()
|
||||||
.join(", ");
|
.join(", ");
|
||||||
let returns = ty
|
let returns = ty
|
||||||
.returns
|
.returns()
|
||||||
.iter()
|
.iter()
|
||||||
.map(|s| s.to_string())
|
.map(|s| s.to_string())
|
||||||
.collect::<Vec<_>>()
|
.collect::<Vec<_>>()
|
||||||
|
|||||||
Reference in New Issue
Block a user