From c9a9f0e305f8d1fb4e488225335d130bc038496b Mon Sep 17 00:00:00 2001 From: Alex Stokes Date: Tue, 15 Jan 2019 17:03:45 -0800 Subject: [PATCH] Remove imports already in the prelude --- beacon_chain/types/src/validator_record.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/beacon_chain/types/src/validator_record.rs b/beacon_chain/types/src/validator_record.rs index 0e1102a59..4f2ada4ad 100644 --- a/beacon_chain/types/src/validator_record.rs +++ b/beacon_chain/types/src/validator_record.rs @@ -3,8 +3,6 @@ use super::Hash256; use crate::test_utils::TestRandom; use rand::RngCore; use ssz::{Decodable, DecodeError, Encodable, SszStream}; -use std::convert; -use std::default; const STATUS_FLAG_INITIATED_EXIT: u8 = 1; const STATUS_FLAG_WITHDRAWABLE: u8 = 2; @@ -15,7 +13,7 @@ pub enum StatusFlags { Withdrawable, } -impl convert::From for StatusFlags { +impl From for StatusFlags { fn from(status_flag: u8) -> Self { match status_flag { STATUS_FLAG_INITIATED_EXIT => StatusFlags::InitiatedExit, @@ -48,7 +46,7 @@ impl ValidatorRecord { } } -impl default::Default for ValidatorRecord { +impl Default for ValidatorRecord { fn default() -> Self { Self { pubkey: PublicKey::default(),