Skip to content

Commit 9795bb5

Browse files
committed
fixup! feat(cargo-codspeed): support walltime runs from with cargo-codspeed
1 parent ff70019 commit 9795bb5

File tree

1 file changed

+1
-1
lines changed
  • crates/cargo-codspeed/src

1 file changed

+1
-1
lines changed

crates/cargo-codspeed/src/run.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ fn get_raw_result_dir_from_workspace_root(workspace_root: &Path) -> PathBuf {
180180

181181
fn clear_raw_walltime_data(workspace_root: &Path) -> Result<()> {
182182
let raw_results_dir = get_raw_result_dir_from_workspace_root(workspace_root);
183-
std::fs::remove_dir_all(&raw_results_dir).context("Failed to clear raw_results directory")?;
183+
std::fs::remove_dir_all(&raw_results_dir).ok(); // ignore errors when the directory does not exist
184184
std::fs::create_dir_all(&raw_results_dir).context("Failed to create raw_results directory")?;
185185
Ok(())
186186
}

0 commit comments

Comments
 (0)