Skip to content

Commit

Permalink
Format diff line to be easily clickable
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
joshka authored and ytmimi committed Jan 25, 2024
1 parent bf96731 commit 7f44a08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/emitter/diff.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ impl Emitter for DiffEmitter {
} else {
print_diff(
mismatch,
|line_num| format!("Diff in {} at line {}:", filename, line_num),
|line_num| format!("Diff in {}:{}:", filename, line_num),
&self.config,
);
}
Expand Down

0 comments on commit 7f44a08

Please sign in to comment.