Remove imports already in the prelude

This commit is contained in:
Alex Stokes 2019-01-15 17:03:45 -08:00
parent b09d44c235
commit c9a9f0e305
No known key found for this signature in database
GPG Key ID: 51CE1721B245C086

View File

@ -3,8 +3,6 @@ use super::Hash256;
use crate::test_utils::TestRandom; use crate::test_utils::TestRandom;
use rand::RngCore; use rand::RngCore;
use ssz::{Decodable, DecodeError, Encodable, SszStream}; use ssz::{Decodable, DecodeError, Encodable, SszStream};
use std::convert;
use std::default;
const STATUS_FLAG_INITIATED_EXIT: u8 = 1; const STATUS_FLAG_INITIATED_EXIT: u8 = 1;
const STATUS_FLAG_WITHDRAWABLE: u8 = 2; const STATUS_FLAG_WITHDRAWABLE: u8 = 2;
@ -15,7 +13,7 @@ pub enum StatusFlags {
Withdrawable, Withdrawable,
} }
impl convert::From<u8> for StatusFlags { impl From<u8> for StatusFlags {
fn from(status_flag: u8) -> Self { fn from(status_flag: u8) -> Self {
match status_flag { match status_flag {
STATUS_FLAG_INITIATED_EXIT => StatusFlags::InitiatedExit, STATUS_FLAG_INITIATED_EXIT => StatusFlags::InitiatedExit,
@ -48,7 +46,7 @@ impl ValidatorRecord {
} }
} }
impl default::Default for ValidatorRecord { impl Default for ValidatorRecord {
fn default() -> Self { fn default() -> Self {
Self { Self {
pubkey: PublicKey::default(), pubkey: PublicKey::default(),