We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3fdf1fd commit a82e6dcCopy full SHA for a82e6dc
src/docbuilder/caching.rs
@@ -62,8 +62,8 @@ impl ArtifactCache {
62
) -> Result<()> {
63
let target_dir = target_dir.as_ref();
64
if target_dir.exists() {
65
- // to be safe, while most of the time the dir doesn't exist,
66
- // or is empty.
+ // Delete the target dir to be safe, even though most of the
+ // time the dir doesn't exist or is empty.
67
fs::remove_dir_all(target_dir).context("could not clean target directory")?;
68
}
69
0 commit comments