From 0d2d4369aa2692ae06f50bf6a4fb2119d6c1d672 Mon Sep 17 00:00:00 2001 From: Syrus Date: Mon, 20 Jan 2020 14:15:02 -0800 Subject: [PATCH] Fixed lint issue --- lib/runtime-core/src/cache.rs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/lib/runtime-core/src/cache.rs b/lib/runtime-core/src/cache.rs index b5aa8ccfc27..76a058f8bbb 100644 --- a/lib/runtime-core/src/cache.rs +++ b/lib/runtime-core/src/cache.rs @@ -79,11 +79,9 @@ impl WasmHash { )); } use std::convert::TryInto; - Ok(WasmHash( - bytes[0..32].try_into().map_err(|e| { - Error::DeserializeError(format!("Could not get first 32 bytes: {}", e)) - })? - )) + Ok(WasmHash(bytes[0..32].try_into().map_err(|e| { + Error::DeserializeError(format!("Could not get first 32 bytes: {}", e)) + })?)) } pub(crate) fn into_array(self) -> [u8; 32] {