Skip to content

Commit b4c90ab

Browse files
committed
Fix declare_clippy_lint crate
1 parent d407778 commit b4c90ab

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/tools/clippy/declare_clippy_lint/Cargo.toml

+3
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,6 @@ proc-macro = true
1111
itertools = "0.10.1"
1212
quote = "1.0.21"
1313
syn = "1.0.100"
14+
15+
[features]
16+
deny-warnings = []

src/tools/clippy/declare_clippy_lint/src/lib.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#![feature(let_chains)]
22
#![cfg_attr(feature = "deny-warnings", deny(warnings))]
3+
// warn on lints, that are included in `rust-lang/rust`s bootstrap
4+
#![warn(rust_2018_idioms, unused_lifetimes)]
35

46
use proc_macro::TokenStream;
57
use quote::{format_ident, quote};
@@ -29,7 +31,7 @@ struct ClippyLint {
2931
}
3032

3133
impl Parse for ClippyLint {
32-
fn parse(input: ParseStream) -> Result<Self> {
34+
fn parse(input: ParseStream<'_>) -> Result<Self> {
3335
let attrs = input.call(Attribute::parse_outer)?;
3436

3537
let mut in_code = false;

0 commit comments

Comments
 (0)