mirror of
https://github.com/sigp/lighthouse.git
synced 2026-06-29 10:54:24 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user