chore(clippy): make clippy happy (#1688)

This commit is contained in:
Matthias Seitz 2022-09-11 23:11:43 +02:00 committed by GitHub
parent 4883d28e86
commit e95a96426a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -204,12 +204,12 @@ impl<T: ArtifactOutput> ProjectCompileOutput<T> {
pub fn compiled_contracts_by_compiler_version(
&self,
) -> BTreeMap<Version, Vec<(String, Contract)>> {
let mut contracts = BTreeMap::new();
let mut contracts: BTreeMap<_, Vec<_>> = BTreeMap::new();
let versioned_contracts = &self.compiler_output.contracts;
for (_, name, contract, version) in versioned_contracts.contracts_with_files_and_version() {
contracts
.entry(version.to_owned())
.or_insert(Vec::<(String, Contract)>::new())
.or_default()
.push((name.to_string(), contract.clone()));
}
contracts