Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

fix: ambiguous_glob_reexports rustc lint #2301

Merged
merged 2 commits into from
Mar 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ethers-core/src/types/chain.rs
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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