Skip to content

Commit c1745cd

Browse files
committed
Remove import of serde
1 parent c05adc5 commit c1745cd

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

clippy_lints/src/lib.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,6 @@ use rustc_plugin;
2424
#[macro_use]
2525
extern crate matches as matches_macro;
2626

27-
#[macro_use]
28-
extern crate serde_derive;
29-
3027
#[macro_use]
3128
extern crate lazy_static;
3229

clippy_lints/src/utils/conf.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ use std::io::Read;
77
use syntax::{ast, codemap};
88
use toml;
99
use std::sync::Mutex;
10-
1110
/// Get the configuration file from arguments.
1211
pub fn file_from_args(
1312
args: &[codemap::Spanned<ast::NestedMetaItemKind>],
@@ -86,10 +85,10 @@ macro_rules! define_Conf {
8685
//
8786
#[allow(rust_2018_idioms)]
8887
mod helpers {
88+
use serde_derive::Deserialize;
8989
/// Type used to store lint configuration.
9090
#[derive(Deserialize)]
91-
#[serde(rename_all="kebab-case")]
92-
#[serde(deny_unknown_fields)]
91+
#[serde(rename_all="kebab-case", deny_unknown_fields)]
9392
pub struct Conf {
9493
$(#[$doc] #[serde(default=$rust_name_str)] #[serde(with=$rust_name_str)]
9594
pub $rust_name: define_Conf!(TY $($ty)+),)+

0 commit comments

Comments
 (0)