Skip to content

Commit 702aaaa

Browse files
Normalize path names in report
Also ensure that we get platform-specific line endings when checking out the expected logs.
1 parent 8a4f2aa commit 702aaaa

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.gitattributes

+1
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@
55
*.md text eol=lf
66
*.gitignore text eol=lf
77
*.gitattributes text eol=lf
8+
*.json text eol=lf

src/report/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ pub fn generate_report<DB: ReadResults>(
145145
log: crate_to_path_fragment(tc, &krate, true)
146146
.to_str()
147147
.unwrap()
148-
.to_string(),
148+
.replace(r"\", "/"),
149149
})
150150
});
151151
// Convert errors to Nones

0 commit comments

Comments
 (0)