Properly rebuild rustbooks

This commit is contained in:
clubby789 2024-03-12 12:09:42 +00:00
parent 5b7343b966
commit e8cef43dd8

View file

@ -145,7 +145,8 @@ impl<P: Step> Step for RustbookSrc<P> {
let rustbook = builder.tool_exe(Tool::Rustbook); let rustbook = builder.tool_exe(Tool::Rustbook);
let mut rustbook_cmd = builder.tool_cmd(Tool::Rustbook); let mut rustbook_cmd = builder.tool_cmd(Tool::Rustbook);
if !builder.config.dry_run() && !(up_to_date(&src, &index) || up_to_date(&rustbook, &index)) if !builder.config.dry_run()
&& (!up_to_date(&src, &index) || !up_to_date(&rustbook, &index))
{ {
builder.info(&format!("Rustbook ({target}) - {name}")); builder.info(&format!("Rustbook ({target}) - {name}"));
let _ = fs::remove_dir_all(&out); let _ = fs::remove_dir_all(&out);