From 7f44a0825d51364c224c032cb04fe734007d123f Mon Sep 17 00:00:00 2001 From: Josh McKinney Date: Thu, 30 Nov 2023 20:23:33 -0800 Subject: [PATCH] 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. --- src/emitter/diff.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/emitter/diff.rs b/src/emitter/diff.rs index 0af19a7d0b2..4e48c59ea29 100644 --- a/src/emitter/diff.rs +++ b/src/emitter/diff.rs @@ -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, ); }