Fix warnings in test_harness/src/bin.rs

This commit is contained in:
Paul Hauner 2019-03-02 18:43:27 +11:00
parent c975d49ead
commit db28cc1b92
No known key found for this signature in database
GPG Key ID: D362883A9218FCC6

View File

@ -5,7 +5,6 @@ use bls::create_proof_of_possession;
use clap::{App, Arg};
use env_logger::{Builder, Env};
use log::{info, warn};
use ssz::TreeHash;
use std::{fs::File, io::prelude::*};
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))
}
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>> {
yaml[key].clone().into_vec().and_then(|vec| {
Some(