Do not call dry_run twice

Co-authored-by: Onur Özkan <onurozkan.dev@outlook.com>
This commit is contained in:
Michael Howell 2023-11-18 14:05:59 -07:00
parent 29f5d2c1ae
commit a3d90036c5

View File

@ -445,8 +445,9 @@ fn run(self, builder: &Builder<'_>) {
|| !up_to_date(&footer, &html)
|| !up_to_date(&favicon, &html)
|| !up_to_date(&full_toc, &html)
|| !(builder.config.dry_run() || up_to_date(&version_info, &html))
|| !(builder.config.dry_run() || up_to_date(&rustdoc, &html))
|| !(builder.config.dry_run()
|| up_to_date(&version_info, &html)
|| up_to_date(&rustdoc, &html))
{
let mut tmpfile = t!(fs::File::create(&tmppath));
t!(tmpfile.write_all(b"% Rust Release Notes\n\n"));