Use local and remapped paths where appropriate
This commit is contained in:
parent
fb4f6439f6
commit
5417b45c26
28 changed files with 85 additions and 74 deletions
|
@ -126,7 +126,8 @@ impl AnnotateSnippetEmitterWriter {
|
|||
}
|
||||
// owned: line source, line index, annotations
|
||||
type Owned = (String, usize, Vec<crate::snippet::Annotation>);
|
||||
let origin = primary_lo.file.name.to_string();
|
||||
let filename = primary_lo.file.name.prefer_local();
|
||||
let origin = filename.to_string_lossy();
|
||||
let annotated_files: Vec<Owned> = annotated_files
|
||||
.into_iter()
|
||||
.flat_map(|annotated_file| {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue