diff options
| author | Laurenz <laurmaedje@gmail.com> | 2020-12-10 22:44:35 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2020-12-10 22:45:45 +0100 |
| commit | 1cbd5f3051ba90b3f673bc2f6319192d05381719 (patch) | |
| tree | 182134e9f355062a00a145fab3a988847c4ed13b /src/main.rs | |
| parent | fdc1b378a3eb3cf325592b801c43e2ec2478ddff (diff) | |
Refine test infrastructure ✅
- Tests diagnostics
- More and better separated image tests
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main.rs b/src/main.rs index 3f12655b..acd2d0cd 100644 --- a/src/main.rs +++ b/src/main.rs @@ -59,10 +59,10 @@ fn main() -> anyhow::Result<()> { let map = LineMap::new(&src); for diag in diags { let span = diag.span; - let start = map.location(span.start); - let end = map.location(span.end); + let start = map.location(span.start).unwrap(); + let end = map.location(span.end).unwrap(); println!( - " {}: {}:{}-{}: {}", + "{}: {}:{}-{}: {}", diag.v.level, src_path.display(), start, |
