diff --git a/ethers-core/src/types/chain.rs b/ethers-core/src/types/chain.rs index fd23c83b0..76bc50f3f 100644 --- a/ethers-core/src/types/chain.rs +++ b/ethers-core/src/types/chain.rs @@ -621,7 +621,7 @@ mod tests { fn serde_to_string_match() { for chain in Chain::iter() { let chain_serde = serde_json::to_string(&chain).unwrap(); - let chain_string = format!("\"{}\"", chain.to_string()); + let chain_string = format!("\"{}\"", chain); assert_eq!(chain_serde, chain_string); } } diff --git a/ethers-etherscan/src/lib.rs b/ethers-etherscan/src/lib.rs index 5577deb87..c1ea855e4 100644 --- a/ethers-etherscan/src/lib.rs +++ b/ethers-etherscan/src/lib.rs @@ -24,7 +24,7 @@ pub mod contract; pub mod errors; pub mod gas; pub mod source_tree; -pub mod transaction; +mod transaction; pub mod utils; pub mod verify; diff --git a/ethers/src/lib.rs b/ethers/src/lib.rs index 0911b6f02..0efb95b7f 100644 --- a/ethers/src/lib.rs +++ b/ethers/src/lib.rs @@ -106,8 +106,9 @@ pub use ethers_core::{abi, types, utils}; /// Easy imports of frequently used type definitions and traits. #[doc(hidden)] +#[allow(ambiguous_glob_reexports)] pub mod prelude { - pub use super::addressbook::*; + pub use super::addressbook::contract; pub use super::contract::*;