Remove pre-2018 extern crate uses
This commit is contained in:
parent
ea523c8658
commit
5ef02688d5
@ -62,9 +62,9 @@ impl<T: RngCore> TestRandom<T> for Attestation {
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::ssz::ssz_encode;
|
||||
use super::*;
|
||||
use crate::test_utils::{SeedableRng, TestRandom, XorShiftRng};
|
||||
use ssz::ssz_encode;
|
||||
|
||||
#[test]
|
||||
pub fn test_ssz_round_trip() {
|
||||
|
@ -102,9 +102,9 @@ impl<T: RngCore> TestRandom<T> for AttestationData {
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::ssz::ssz_encode;
|
||||
use super::*;
|
||||
use crate::test_utils::{SeedableRng, TestRandom, XorShiftRng};
|
||||
use ssz::ssz_encode;
|
||||
|
||||
#[test]
|
||||
pub fn test_ssz_round_trip() {
|
||||
|
@ -39,9 +39,9 @@ impl<T: RngCore> TestRandom<T> for AttestationDataAndCustodyBit {
|
||||
|
||||
#[cfg(test)]
|
||||
mod test {
|
||||
use super::ssz::ssz_encode;
|
||||
use super::*;
|
||||
use crate::test_utils::{SeedableRng, TestRandom, XorShiftRng};
|
||||
use ssz::ssz_encode;
|
||||
|
||||
#[test]
|
||||
pub fn test_ssz_round_trip() {
|
||||
|
@ -5,6 +5,8 @@ use hashing::canonical_hash;
|
||||
use rand::RngCore;
|
||||
use ssz::{ssz_encode, Decodable, DecodeError, Encodable, SszStream};
|
||||
|
||||
mod signing;
|
||||
|
||||
#[derive(Debug, PartialEq, Clone)]
|
||||
pub struct BeaconBlock {
|
||||
pub slot: u64,
|
||||
@ -77,9 +79,9 @@ impl<T: RngCore> TestRandom<T> for BeaconBlock {
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::ssz::ssz_encode;
|
||||
use super::*;
|
||||
use crate::test_utils::{SeedableRng, TestRandom, XorShiftRng};
|
||||
use ssz::ssz_encode;
|
||||
|
||||
#[test]
|
||||
pub fn test_ssz_round_trip() {
|
@ -78,9 +78,9 @@ impl<T: RngCore> TestRandom<T> for BeaconBlockBody {
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::ssz::ssz_encode;
|
||||
use super::*;
|
||||
use crate::test_utils::{SeedableRng, TestRandom, XorShiftRng};
|
||||
use ssz::ssz_encode;
|
||||
|
||||
#[test]
|
||||
pub fn test_ssz_round_trip() {
|
||||
|
@ -42,9 +42,9 @@ impl<T: RngCore> TestRandom<T> for CasperSlashing {
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::ssz::ssz_encode;
|
||||
use super::*;
|
||||
use crate::test_utils::{SeedableRng, TestRandom, XorShiftRng};
|
||||
use ssz::ssz_encode;
|
||||
|
||||
#[test]
|
||||
pub fn test_ssz_round_trip() {
|
||||
|
@ -52,9 +52,9 @@ impl<T: RngCore> TestRandom<T> for Crosslink {
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::ssz::ssz_encode;
|
||||
use super::*;
|
||||
use crate::test_utils::{SeedableRng, TestRandom, XorShiftRng};
|
||||
use ssz::ssz_encode;
|
||||
|
||||
#[test]
|
||||
pub fn test_ssz_round_trip() {
|
||||
|
@ -47,9 +47,9 @@ impl<T: RngCore> TestRandom<T> for Deposit {
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::ssz::ssz_encode;
|
||||
use super::*;
|
||||
use crate::test_utils::{SeedableRng, TestRandom, XorShiftRng};
|
||||
use ssz::ssz_encode;
|
||||
|
||||
#[test]
|
||||
pub fn test_ssz_round_trip() {
|
||||
|
@ -47,9 +47,9 @@ impl<T: RngCore> TestRandom<T> for DepositData {
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::ssz::ssz_encode;
|
||||
use super::*;
|
||||
use crate::test_utils::{SeedableRng, TestRandom, XorShiftRng};
|
||||
use ssz::ssz_encode;
|
||||
|
||||
#[test]
|
||||
pub fn test_ssz_round_trip() {
|
||||
|
@ -48,9 +48,9 @@ impl<T: RngCore> TestRandom<T> for DepositInput {
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::ssz::ssz_encode;
|
||||
use super::*;
|
||||
use crate::test_utils::{SeedableRng, TestRandom, XorShiftRng};
|
||||
use ssz::ssz_encode;
|
||||
|
||||
#[test]
|
||||
pub fn test_ssz_round_trip() {
|
||||
|
@ -43,9 +43,9 @@ impl<T: RngCore> TestRandom<T> for Eth1Data {
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::ssz::ssz_encode;
|
||||
use super::*;
|
||||
use crate::test_utils::{SeedableRng, TestRandom, XorShiftRng};
|
||||
use ssz::ssz_encode;
|
||||
|
||||
#[test]
|
||||
pub fn test_ssz_round_trip() {
|
||||
|
@ -43,9 +43,9 @@ impl<T: RngCore> TestRandom<T> for Eth1DataVote {
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::ssz::ssz_encode;
|
||||
use super::*;
|
||||
use crate::test_utils::{SeedableRng, TestRandom, XorShiftRng};
|
||||
use ssz::ssz_encode;
|
||||
|
||||
#[test]
|
||||
pub fn test_ssz_round_trip() {
|
||||
|
@ -47,9 +47,9 @@ impl<T: RngCore> TestRandom<T> for Exit {
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::ssz::ssz_encode;
|
||||
use super::*;
|
||||
use crate::test_utils::{SeedableRng, TestRandom, XorShiftRng};
|
||||
use ssz::ssz_encode;
|
||||
|
||||
#[test]
|
||||
pub fn test_ssz_round_trip() {
|
||||
|
@ -46,9 +46,9 @@ impl<T: RngCore> TestRandom<T> for Fork {
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::ssz::ssz_encode;
|
||||
use super::*;
|
||||
use crate::test_utils::{SeedableRng, TestRandom, XorShiftRng};
|
||||
use ssz::ssz_encode;
|
||||
|
||||
#[test]
|
||||
pub fn test_ssz_round_trip() {
|
||||
|
@ -52,9 +52,9 @@ impl<T: RngCore> TestRandom<T> for PendingAttestation {
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::ssz::ssz_encode;
|
||||
use super::*;
|
||||
use crate::test_utils::{SeedableRng, TestRandom, XorShiftRng};
|
||||
use ssz::ssz_encode;
|
||||
|
||||
#[test]
|
||||
pub fn test_ssz_round_trip() {
|
||||
|
@ -47,9 +47,9 @@ impl<T: RngCore> TestRandom<T> for ProposalSignedData {
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::ssz::ssz_encode;
|
||||
use super::*;
|
||||
use crate::test_utils::{SeedableRng, TestRandom, XorShiftRng};
|
||||
use ssz::ssz_encode;
|
||||
|
||||
#[test]
|
||||
pub fn test_ssz_round_trip() {
|
||||
|
@ -58,9 +58,9 @@ impl<T: RngCore> TestRandom<T> for ProposerSlashing {
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::ssz::ssz_encode;
|
||||
use super::*;
|
||||
use crate::test_utils::{SeedableRng, TestRandom, XorShiftRng};
|
||||
use ssz::ssz_encode;
|
||||
|
||||
#[test]
|
||||
pub fn test_ssz_round_trip() {
|
||||
|
@ -35,9 +35,9 @@ impl<T: RngCore> TestRandom<T> for ShardCommittee {
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::ssz::ssz_encode;
|
||||
use super::*;
|
||||
use crate::test_utils::{SeedableRng, TestRandom, XorShiftRng};
|
||||
use ssz::ssz_encode;
|
||||
|
||||
#[test]
|
||||
pub fn test_ssz_round_trip() {
|
||||
|
@ -53,9 +53,9 @@ impl<T: RngCore> TestRandom<T> for SlashableVoteData {
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::ssz::ssz_encode;
|
||||
use super::*;
|
||||
use crate::test_utils::{SeedableRng, TestRandom, XorShiftRng};
|
||||
use ssz::ssz_encode;
|
||||
|
||||
#[test]
|
||||
pub fn test_ssz_round_trip() {
|
||||
|
@ -162,9 +162,9 @@ impl<T: RngCore> TestRandom<T> for Validator {
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::ssz::ssz_encode;
|
||||
use super::*;
|
||||
use crate::test_utils::{SeedableRng, TestRandom, XorShiftRng};
|
||||
use ssz::ssz_encode;
|
||||
|
||||
#[test]
|
||||
pub fn test_ssz_round_trip() {
|
||||
|
@ -72,9 +72,9 @@ impl<T: RngCore> TestRandom<T> for ValidatorRegistryDeltaBlock {
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::ssz::ssz_encode;
|
||||
use super::*;
|
||||
use crate::test_utils::{SeedableRng, TestRandom, XorShiftRng};
|
||||
use ssz::ssz_encode;
|
||||
|
||||
#[test]
|
||||
pub fn test_ssz_round_trip() {
|
||||
|
@ -47,8 +47,8 @@ impl Decodable for AggregateSignature {
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::super::{Keypair, Signature};
|
||||
use super::ssz::ssz_encode;
|
||||
use super::*;
|
||||
use ssz::ssz_encode;
|
||||
|
||||
#[test]
|
||||
pub fn test_ssz_round_trip() {
|
||||
|
@ -67,8 +67,8 @@ impl Hash for PublicKey {
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::ssz::ssz_encode;
|
||||
use super::*;
|
||||
use ssz::ssz_encode;
|
||||
|
||||
#[test]
|
||||
pub fn test_ssz_round_trip() {
|
||||
|
@ -42,8 +42,8 @@ impl Decodable for SecretKey {
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::super::ssz::ssz_encode;
|
||||
use super::*;
|
||||
use ssz::ssz_encode;
|
||||
|
||||
#[test]
|
||||
pub fn test_ssz_round_trip() {
|
||||
|
@ -60,8 +60,8 @@ impl Decodable for Signature {
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::super::Keypair;
|
||||
use super::ssz::ssz_encode;
|
||||
use super::*;
|
||||
use ssz::ssz_encode;
|
||||
|
||||
#[test]
|
||||
pub fn test_ssz_round_trip() {
|
||||
|
Loading…
Reference in New Issue
Block a user