Skip to content

Commit

Permalink
Don't remove output dir
Browse files Browse the repository at this point in the history
  • Loading branch information
simon-bourne committed Nov 30, 2023
1 parent 8a8dba1 commit 0d9d2c2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/rust-book/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ impl Book {
}

fn build(&self) -> Result<()> {
fs::remove_dir_all(&self.out_dir)?;
// TODO: Figure out why build fails sometimes when we remove the output dir:
// fs::remove_dir_all(&self.out_dir)?;
fs::create_dir_all(&self.out_dir)?;
fs::copy(
self.cargo_manifest_dir.join("book.toml"),
Expand Down

0 comments on commit 0d9d2c2

Please sign in to comment.