File tree 3 files changed +4
-4
lines changed 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -310,8 +310,8 @@ declare_clippy_lint! {
310
310
/// ```rust,ignore
311
311
/// #[allow(unused_mut)]
312
312
/// fn foo() -> usize {
313
- /// let mut a = Vec::new();
314
- /// a.len()
313
+ /// let mut a = Vec::new();
314
+ /// a.len()
315
315
/// }
316
316
/// ```
317
317
/// Use instead:
Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ declare_clippy_lint! {
80
80
/// ```no_run
81
81
/// // `n` can be any number, including `i32::MAX`.
82
82
/// fn foo(n: i32) -> i32 {
83
- /// n + 1
83
+ /// n + 1
84
84
/// }
85
85
/// ```
86
86
///
Original file line number Diff line number Diff line change @@ -156,7 +156,7 @@ pub fn declare_clippy_lint(input: TokenStream) -> TokenStream {
156
156
let category_variant = format_ident ! ( "{category}" ) ;
157
157
158
158
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( ) ) ;
160
160
161
161
let version = match version {
162
162
Some ( version) => quote ! ( Some ( #version) ) ,
You can’t perform that action at this time.
0 commit comments