File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -24,9 +24,6 @@ use rustc_plugin;
24
24
#[ macro_use]
25
25
extern crate matches as matches_macro;
26
26
27
- #[ macro_use]
28
- extern crate serde_derive;
29
-
30
27
#[ macro_use]
31
28
extern crate lazy_static;
32
29
Original file line number Diff line number Diff line change @@ -7,7 +7,6 @@ use std::io::Read;
7
7
use syntax:: { ast, codemap} ;
8
8
use toml;
9
9
use std:: sync:: Mutex ;
10
-
11
10
/// Get the configuration file from arguments.
12
11
pub fn file_from_args (
13
12
args : & [ codemap:: Spanned < ast:: NestedMetaItemKind > ] ,
@@ -86,10 +85,10 @@ macro_rules! define_Conf {
86
85
//
87
86
#[ allow( rust_2018_idioms) ]
88
87
mod helpers {
88
+ use serde_derive:: Deserialize ;
89
89
/// Type used to store lint configuration.
90
90
#[ derive( Deserialize ) ]
91
- #[ serde( rename_all="kebab-case" ) ]
92
- #[ serde( deny_unknown_fields) ]
91
+ #[ serde( rename_all="kebab-case" , deny_unknown_fields) ]
93
92
pub struct Conf {
94
93
$( #[ $doc] #[ serde( default =$rust_name_str) ] #[ serde( with=$rust_name_str) ]
95
94
pub $rust_name: define_Conf!( TY $( $ty) +) , ) +
You can’t perform that action at this time.
0 commit comments