summaryrefslogtreecommitdiff
path: root/src/handlers
diff options
context:
space:
mode:
authorJustin Su <injustsu@gmail.com>2025-07-15 08:09:05 -0400
committerGitHub <noreply@github.com>2025-07-15 08:09:05 -0400
commitcd4a9f4e74d243d44bdaebde5d4188cdc100951a (patch)
treecb81cc74209efc3ea35d1030b27d74e2344aa75c /src/handlers
parented09269ebace8aad765c57a2821502ebb8c11f11 (diff)
Fix clippy errors (#2016)
Diffstat (limited to 'src/handlers')
-rw-r--r--src/handlers/grep.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/handlers/grep.rs b/src/handlers/grep.rs
index 69e7957..8dc69b7 100644
--- a/src/handlers/grep.rs
+++ b/src/handlers/grep.rs
@@ -404,7 +404,7 @@ fn get_code_style_sections<'b>(
if let Some(prefix_end) = ansi::ansi_preserving_index(
raw_line,
match line_number {
- Some(n) => format!("{}:{}:", path, n).len() - 1,
+ Some(n) => format!("{path}:{n}:").len() - 1,
None => path.len(),
},
) {