mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 00:34:06 +00:00
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 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)),
|
||||
|
Loading…
Reference in New Issue
Block a user