Skip to content

Commit ef42014

Browse files
committed
Use more hashmap oriented iterators
1 parent a268df3 commit ef42014

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/cargo/core/compiler/fingerprint/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -873,7 +873,7 @@ impl LocalFingerprint {
873873
mtime_cache,
874874
checksum_cache,
875875
&dep_info,
876-
info.files.into_iter().map(|(p, _checksum)| (p, None)),
876+
info.files.into_keys().map(|p| (p, None)),
877877
*checksum,
878878
))
879879
}

src/cargo/core/compiler/output_depinfo.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ fn add_deps_for_unit(
6161
build_runner.files().host_root(),
6262
&dep_info_loc,
6363
)? {
64-
for (path, _checksum) in paths.files {
64+
for path in paths.files.into_keys() {
6565
deps.insert(path);
6666
}
6767
} else {

0 commit comments

Comments
 (0)