Skip to content

Commit

Permalink
Fixed lint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
syrusakbary committed Jan 20, 2020
1 parent 5293bad commit 0d2d436
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions lib/runtime-core/src/cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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] {
Expand Down

0 comments on commit 0d2d436

Please sign in to comment.