Use PathBuf instead of String where applicable
This commit is contained in:
parent
8954b16beb
commit
d732da813b
48 changed files with 443 additions and 308 deletions
|
@ -282,7 +282,7 @@ impl DiagnosticSpan {
|
|||
})
|
||||
});
|
||||
DiagnosticSpan {
|
||||
file_name: start.file.name.clone(),
|
||||
file_name: start.file.name.to_string(),
|
||||
byte_start: span.lo().0 - start.file.start_pos.0,
|
||||
byte_end: span.hi().0 - start.file.start_pos.0,
|
||||
line_start: start.line,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue