Fix warnings in test_harness/src/bin.rs
This commit is contained in:
parent
c975d49ead
commit
db28cc1b92
@ -5,7 +5,6 @@ use bls::create_proof_of_possession;
|
|||||||
use clap::{App, Arg};
|
use clap::{App, Arg};
|
||||||
use env_logger::{Builder, Env};
|
use env_logger::{Builder, Env};
|
||||||
use log::{info, warn};
|
use log::{info, warn};
|
||||||
use ssz::TreeHash;
|
|
||||||
use std::{fs::File, io::prelude::*};
|
use std::{fs::File, io::prelude::*};
|
||||||
use types::*;
|
use types::*;
|
||||||
use types::{
|
use types::{
|
||||||
@ -331,12 +330,6 @@ fn as_u64(yaml: &Yaml, key: &str) -> Option<u64> {
|
|||||||
yaml[key].as_i64().and_then(|n| Some(n as u64))
|
yaml[key].as_i64().and_then(|n| Some(n as u64))
|
||||||
}
|
}
|
||||||
|
|
||||||
fn as_hash256(yaml: &Yaml, key: &str) -> Option<Hash256> {
|
|
||||||
yaml[key]
|
|
||||||
.as_str()
|
|
||||||
.and_then(|s| Some(Hash256::from(s.as_bytes())))
|
|
||||||
}
|
|
||||||
|
|
||||||
fn as_vec_u64(yaml: &Yaml, key: &str) -> Option<Vec<u64>> {
|
fn as_vec_u64(yaml: &Yaml, key: &str) -> Option<Vec<u64>> {
|
||||||
yaml[key].clone().into_vec().and_then(|vec| {
|
yaml[key].clone().into_vec().and_then(|vec| {
|
||||||
Some(
|
Some(
|
||||||
|
Loading…
Reference in New Issue
Block a user