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.
This commit is contained in:
parent
bf967319e2
commit
7f44a0825d
@ -32,7 +32,7 @@ impl Emitter for DiffEmitter {
|
|||||||
} else {
|
} else {
|
||||||
print_diff(
|
print_diff(
|
||||||
mismatch,
|
mismatch,
|
||||||
|line_num| format!("Diff in {} at line {}:", filename, line_num),
|
|line_num| format!("Diff in {}:{}:", filename, line_num),
|
||||||
&self.config,
|
&self.config,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user