Skip to content

Commit 833c93b

Browse files
committed
use public accessors, not private fields for WasmFuncType params/returns
1 parent b39f087 commit 833c93b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/wasmtime/src/types/matching.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,13 +117,13 @@ impl MatchCx<'_> {
117117

118118
let render = |ty: &WasmFuncType| {
119119
let params = ty
120-
.params
120+
.params()
121121
.iter()
122122
.map(|s| s.to_string())
123123
.collect::<Vec<_>>()
124124
.join(", ");
125125
let returns = ty
126-
.returns
126+
.returns()
127127
.iter()
128128
.map(|s| s.to_string())
129129
.collect::<Vec<_>>()

0 commit comments

Comments
 (0)