Skip to content

Commit

Permalink
fix: ambiguous_glob_reexports rustc lint (#2301)
Browse files Browse the repository at this point in the history
* fix: ambiguous_glob_reexports rustc lint

* chore: clippy
  • Loading branch information
DaniPopes committed Mar 27, 2023
1 parent e96cc7e commit 27f895f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ethers-core/src/types/chain.rs
Expand Up @@ -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);
}
}
Expand Down
2 changes: 1 addition & 1 deletion ethers-etherscan/src/lib.rs
Expand Up @@ -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;

Expand Down
3 changes: 2 additions & 1 deletion ethers/src/lib.rs
Expand Up @@ -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::*;

Expand Down

0 comments on commit 27f895f

Please sign in to comment.