Skip to content

Commit f17fa0a

Browse files
committed
Format diff line to be easily clickable
Instead of {filename} at {line}, use {filename}:{line} as this is a format that many editors allow to be clicked to navigate directly to the line.
1 parent 37489e4 commit f17fa0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/emitter/diff.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ impl Emitter for DiffEmitter {
3232
} else {
3333
print_diff(
3434
mismatch,
35-
|line_num| format!("Diff in {} at line {}:", filename, line_num),
35+
|line_num| format!("Diff in {}:{}:", filename, line_num),
3636
&self.config,
3737
);
3838
}

0 commit comments

Comments
 (0)