Do not call dry_run twice
Co-authored-by: Onur Özkan <onurozkan.dev@outlook.com>
This commit is contained in:
parent
29f5d2c1ae
commit
a3d90036c5
@ -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"));
|
||||
|
Loading…
Reference in New Issue
Block a user