File tree 1 file changed +4
-4
lines changed 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -317,10 +317,10 @@ impl CodeMap {
317
317
318
318
pub fn mk_substr_filename(&self, sp: Span) -> String {
319
319
let pos = self.lookup_char_pos(sp.lo());
320
- ( format!("<{}:{}:{}>",
320
+ format!("<{}:{}:{}>",
321
321
pos.file.name,
322
322
pos.line,
323
- pos.col.to_usize() + 1)).to_string()
323
+ pos.col.to_usize() + 1)
324
324
}
325
325
326
326
// If there is a doctest_offset, apply it to the line
@@ -462,12 +462,12 @@ impl CodeMap {
462
462
463
463
let lo = self.lookup_char_pos_adj(sp.lo());
464
464
let hi = self.lookup_char_pos_adj(sp.hi());
465
- return ( format!("{}:{}:{}: {}:{}",
465
+ format!("{}:{}:{}: {}:{}",
466
466
lo.filename,
467
467
lo.line,
468
468
lo.col.to_usize() + 1,
469
469
hi.line,
470
- hi.col.to_usize() + 1)).to_string()
470
+ hi.col.to_usize() + 1)
471
471
}
472
472
473
473
pub fn span_to_filename(&self, sp: Span) -> FileName {
You can’t perform that action at this time.
0 commit comments