restore prior more readable suggestion · rust-lang/rust@58c5ac4 (original) (raw)
File tree
1 file changed
lines changed
- compiler/rustc_interface/src
1 file changed
lines changed
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -578,13 +578,14 @@ fn write_out_deps(tcx: TyCtxt<'_>, outputs: &OutputFilenames, out_filenames: &[P | ||
578 | 578 | // If caller requested this information, add special comments about source file checksums. |
579 | 579 | // These are not necessarily the same checksums as was used in the debug files. |
580 | 580 | 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) | |
583 | 584 | hash_algo.map(|hash_algo |
584 | 585 | }) |
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 | + })?; | |
588 | 589 | } |
589 | 590 | |
590 | 591 | Ok(()) |