fix source location github link

This commit is contained in:
Antoni Spaanderman 2024-08-13 13:13:31 +02:00
parent 5fee840875
commit 819fa6f180
No known key found for this signature in database
GPG Key ID: AE0B68E552E5DF8C

View File

@ -156,7 +156,7 @@ pub fn declare_clippy_lint(input: TokenStream) -> TokenStream {
let category_variant = format_ident!("{category}");
let name_span = name.span().unwrap();
let location = format!("{}#{}", name_span.source_file().path().display(), name_span.line());
let location = format!("{}#L{}", name_span.source_file().path().display(), name_span.line());
let version = match version {
Some(version) => quote!(Some(#version)),