Skip to content

Commit 58c5ac4

Browse files
committed
restore prior more readable suggestion
1 parent b48c5f1 commit 58c5ac4

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

compiler/rustc_interface/src/passes.rs

+6-5
Original file line numberDiff line numberDiff line change
@@ -578,13 +578,14 @@ fn write_out_deps(tcx: TyCtxt<'_>, outputs: &OutputFilenames, out_filenames: &[P
578578
// If caller requested this information, add special comments about source file checksums.
579579
// These are not necessarily the same checksums as was used in the debug files.
580580
if sess.opts.unstable_opts.checksum_hash_algorithm().is_some() {
581-
for (path, file_len, checksum_hash) in
582-
files.iter().filter_map(|(path, file_len, hash_algo)| {
581+
files
582+
.iter()
583+
.filter_map(|(path, file_len, hash_algo)| {
583584
hash_algo.map(|hash_algo| (path, file_len, hash_algo))
584585
})
585-
{
586-
writeln!(file, "# checksum:{checksum_hash} file_len:{file_len} {path}")?;
587-
}
586+
.try_for_each(|(path, file_len, checksum_hash)| {
587+
writeln!(file, "# checksum:{checksum_hash} file_len:{file_len} {path}")
588+
})?;
588589
}
589590

590591
Ok(())

0 commit comments

Comments
 (0)