Skip to content

Commit 819fa6f

Browse files
committed
fix source location github link
1 parent 5fee840 commit 819fa6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

declare_clippy_lint/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ pub fn declare_clippy_lint(input: TokenStream) -> TokenStream {
156156
let category_variant = format_ident!("{category}");
157157

158158
let name_span = name.span().unwrap();
159-
let location = format!("{}#{}", name_span.source_file().path().display(), name_span.line());
159+
let location = format!("{}#L{}", name_span.source_file().path().display(), name_span.line());
160160

161161
let version = match version {
162162
Some(version) => quote!(Some(#version)),

0 commit comments

Comments
 (0)