Skip to content

Commit 95c68de

Browse files
committed
Fix crate version numbers causing everything from them on to be replaced with the extension
1 parent 2d99354 commit 95c68de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

collector/src/compile/execute/profiler.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -371,13 +371,13 @@ impl<'a> Processor for ProfileProcessor<'a> {
371371
Profiler::DepGraph => {
372372
let tmp_file = filepath(data.cwd, "dep_graph.txt");
373373
let output =
374-
filepath(self.output_dir, &out_file("dep-graph")).with_extension("txt");
374+
filepath(self.output_dir, &format!("{}.txt", out_file("dep-graph")));
375375

376376
fs::copy(tmp_file, output)?;
377377

378378
let tmp_file = filepath(data.cwd, "dep_graph.dot");
379379
let output =
380-
filepath(self.output_dir, &out_file("dep-graph")).with_extension("dot");
380+
filepath(self.output_dir, &format!("{}.dot", out_file("dep-graph")));
381381

382382
// May not exist if not incremental, but then that's OK.
383383
fs::copy(tmp_file, output)?;

0 commit comments

Comments
 (0)