From 3426921a8bd78ccd88d3738bff5c44a4a6021717 Mon Sep 17 00:00:00 2001 From: Ivan Enderlin Date: Fri, 3 Apr 2020 16:19:07 +0200 Subject: [PATCH] fix(interface-types) Also apply another lazy evaluation in the deserializer. --- src/interpreter/wasm/serde/de.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/interpreter/wasm/serde/de.rs b/src/interpreter/wasm/serde/de.rs index fb6b335..dba8e8f 100644 --- a/src/interpreter/wasm/serde/de.rs +++ b/src/interpreter/wasm/serde/de.rs @@ -243,7 +243,7 @@ impl<'de, 'a> de::Deserializer<'de> for &'a mut Deserializer<'de> { { // Both `InterfaceValue::S64` and `InterfaceValue::I64` // represent `i64`. - visitor.visit_i64(self.next_s64().or(self.next_i64())?) + visitor.visit_i64(self.next_s64().or_else(|_| self.next_i64())?) } fn deserialize_u8(self, visitor: V) -> Result