chore(clippy): make clippy happy (#1688)
This commit is contained in:
parent
4883d28e86
commit
e95a96426a
|
@ -204,12 +204,12 @@ impl<T: ArtifactOutput> ProjectCompileOutput<T> {
|
||||||
pub fn compiled_contracts_by_compiler_version(
|
pub fn compiled_contracts_by_compiler_version(
|
||||||
&self,
|
&self,
|
||||||
) -> BTreeMap<Version, Vec<(String, Contract)>> {
|
) -> BTreeMap<Version, Vec<(String, Contract)>> {
|
||||||
let mut contracts = BTreeMap::new();
|
let mut contracts: BTreeMap<_, Vec<_>> = BTreeMap::new();
|
||||||
let versioned_contracts = &self.compiler_output.contracts;
|
let versioned_contracts = &self.compiler_output.contracts;
|
||||||
for (_, name, contract, version) in versioned_contracts.contracts_with_files_and_version() {
|
for (_, name, contract, version) in versioned_contracts.contracts_with_files_and_version() {
|
||||||
contracts
|
contracts
|
||||||
.entry(version.to_owned())
|
.entry(version.to_owned())
|
||||||
.or_insert(Vec::<(String, Contract)>::new())
|
.or_default()
|
||||||
.push((name.to_string(), contract.clone()));
|
.push((name.to_string(), contract.clone()));
|
||||||
}
|
}
|
||||||
contracts
|
contracts
|
||||||
|
|
Loading…
Reference in New Issue