Skip to content

Commit eafff1a

Browse files
Use move_file for rename in tracing
This avoids panicking when the source and destinations are on different filesystems.
1 parent e95db59 commit eafff1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bootstrap/src/utils/tracing.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ mod inner {
168168
impl TracingGuard {
169169
pub fn copy_to_dir(self, dir: &std::path::Path) {
170170
drop(self.guard);
171-
std::fs::rename(&self.chrome_tracing_path, dir.join("chrome-trace.json")).unwrap();
171+
crate::utils::helpers::move_file(&self.chrome_tracing_path, dir.join("chrome-trace.json")).unwrap();
172172
}
173173
}
174174

0 commit comments

Comments
 (0)