You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.
Is your feature request related to a problem? Please describe.
Currently, to initialize a HashMap that's intended to be used immediately with some values, we do
let body = self.create_query("contract","checkverifystatus",HashMap::from([("guid", guid.as_ref()),]));
thanks to const generics. Release with that feature is planned to be on 2021-10-21.
Describe the solution you'd like
Replace existing hashmap initializations with proposed solution.
The text was updated successfully, but these errors were encountered:
shekhirin
changed the title
Use HashMap::from for immediate-use hashmaps initialization
Use HashMap::from for immediate-use hashmaps initialization
Oct 16, 2021
Is your feature request related to a problem? Please describe.
Currently, to initialize a HashMap that's intended to be used immediately with some values, we do
ethers-rs/ethers-etherscan/src/lib.rs
Lines 129 to 131 in 4608ddd
Rust 1.56.0 introduces a new way to do so:
thanks to const generics. Release with that feature is planned to be on 2021-10-21.
Describe the solution you'd like
Replace existing hashmap initializations with proposed solution.
The text was updated successfully, but these errors were encountered: