diff options
-rw-r--r-- | src/reports/mod.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/reports/mod.rs b/src/reports/mod.rs index eb7a52f..01635b4 100644 --- a/src/reports/mod.rs +++ b/src/reports/mod.rs @@ -29,10 +29,8 @@ pub fn report_source_issue(level: LogLevel, context: &Context, message: &str) { // Format message and locations. push!("{NORMAL}\n"); - push!("{BLUE}{arrow:>w$}{NORMAL} {in_merged}\n", w=w); - if let Some(in_source) = &context.source.in_source { - push!("{BLUE}{arrow:>w$}{NORMAL} {in_source}\n", w=w); - } + let location = context.source.location(); + push!("{BLUE}{arrow:>w$}{NORMAL} {location}\n", w=w); // Format source context. let left = in_merged.start.column; |