Fix clippy warnings (#1385)

## Issue Addressed

NA

## Proposed Changes

Fixes most clippy warnings and ignores the rest of them, see issue #1388.
This commit is contained in:
blacktemplar
2020-07-23 14:18:00 +00:00
parent ba10c80633
commit 23a8f31f83
93 changed files with 396 additions and 396 deletions

View File

@@ -3,7 +3,6 @@
//!
//! These files are required for some `include_bytes` calls used in this crate.
use hex;
use serde_json::Value;
use sha2::{Digest, Sha256};
use std::env;
@@ -87,7 +86,7 @@ pub fn download_deposit_contract(
let abi = contract
.get("abi")
.ok_or(format!("Response does not contain key: abi"))?
.ok_or_else(|| "Response does not contain key: abi".to_string())?
.to_string();
verify_checksum(abi.as_bytes(), abi_checksum);
@@ -98,7 +97,7 @@ pub fn download_deposit_contract(
let bytecode = contract
.get("bytecode")
.ok_or(format!("Response does not contain key: bytecode"))?
.ok_or_else(|| "Response does not contain key: bytecode".to_string())?
.to_string();
verify_checksum(bytecode.as_bytes(), bytecode_checksum);