From 833c93b25c293c1769704e6d3fefb4b99badab45 Mon Sep 17 00:00:00 2001 From: Nick Fitzgerald Date: Fri, 17 Sep 2021 10:31:13 -0700 Subject: [PATCH] use public accessors, not private fields for `WasmFuncType` params/returns --- crates/wasmtime/src/types/matching.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/wasmtime/src/types/matching.rs b/crates/wasmtime/src/types/matching.rs index ba4bbcdb25..d422acc1a4 100644 --- a/crates/wasmtime/src/types/matching.rs +++ b/crates/wasmtime/src/types/matching.rs @@ -117,13 +117,13 @@ impl MatchCx<'_> { let render = |ty: &WasmFuncType| { let params = ty - .params + .params() .iter() .map(|s| s.to_string()) .collect::>() .join(", "); let returns = ty - .returns + .returns() .iter() .map(|s| s.to_string()) .collect::>()