fix source location github link
This commit is contained in:
parent
5fee840875
commit
819fa6f180
@ -156,7 +156,7 @@ pub fn declare_clippy_lint(input: TokenStream) -> TokenStream {
|
|||||||
let category_variant = format_ident!("{category}");
|
let category_variant = format_ident!("{category}");
|
||||||
|
|
||||||
let name_span = name.span().unwrap();
|
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 {
|
let version = match version {
|
||||||
Some(version) => quote!(Some(#version)),
|
Some(version) => quote!(Some(#version)),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user