From db28cc1b9270895580c651869dfe2f4a8d5d7ce6 Mon Sep 17 00:00:00 2001 From: Paul Hauner Date: Sat, 2 Mar 2019 18:43:27 +1100 Subject: [PATCH] Fix warnings in test_harness/src/bin.rs --- beacon_node/beacon_chain/test_harness/src/bin.rs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/beacon_node/beacon_chain/test_harness/src/bin.rs b/beacon_node/beacon_chain/test_harness/src/bin.rs index 7c525c768..182021440 100644 --- a/beacon_node/beacon_chain/test_harness/src/bin.rs +++ b/beacon_node/beacon_chain/test_harness/src/bin.rs @@ -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 { yaml[key].as_i64().and_then(|n| Some(n as u64)) } -fn as_hash256(yaml: &Yaml, key: &str) -> Option { - yaml[key] - .as_str() - .and_then(|s| Some(Hash256::from(s.as_bytes()))) -} - fn as_vec_u64(yaml: &Yaml, key: &str) -> Option> { yaml[key].clone().into_vec().and_then(|vec| { Some(