Remove two more extern crate statements.

This commit is contained in:
Andreas Fackler 2018-12-15 10:19:10 +01:00 committed by Andreas Fackler
parent fdb0741ff6
commit 527d407063
3 changed files with 8 additions and 4 deletions

View File

@ -8,6 +8,8 @@ use serde_derive::Deserialize;
clippy::needless_update
)]
pub mod v2 {
use ethabi_contract::use_contract;
use_contract!(key_mgr, "abi/v2/KeysManager.abi.json");
use_contract!(val_meta, "abi/v2/ValidatorMetadata.abi.json");
use_contract!(voting, "abi/v2/VotingToChangeKeys.abi.json");
@ -17,6 +19,8 @@ pub mod v2 {
// The `use_contract!` macro triggers several Clippy warnings.
#[allow(clippy::redundant_closure, clippy::needless_update)]
pub mod v1 {
use ethabi_contract::use_contract;
use_contract!(voting, "abi/v1/VotingToChangeKeys.abi.json");
}

View File

@ -1,3 +1,7 @@
use error_chain::{
error_chain, error_chain_processing, impl_error_chain_kind, impl_error_chain_processed,
impl_extract_backtrace,
};
use ethabi;
use web3;

View File

@ -1,7 +1,3 @@
#[macro_use]
extern crate error_chain;
#[macro_use(use_contract)]
extern crate ethabi_contract;
#[macro_use(EthabiContract)]
extern crate ethabi_derive;