File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -11,3 +11,6 @@ proc-macro = true
1111itertools = " 0.10.1"
1212quote = " 1.0.21"
1313syn = " 1.0.100"
14+
15+ [features ]
16+ deny-warnings = []
Original file line number Diff line number Diff line change 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
46use proc_macro:: TokenStream ;
57use quote:: { format_ident, quote} ;
@@ -29,7 +31,7 @@ struct ClippyLint {
2931}
3032
3133impl 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 ;
You can’t perform that action at this time.
0 commit comments