mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-23 13:13:34 +00:00
Remove import of serde
This commit is contained in:
parent
c05adc545c
commit
c1745cde82
2 changed files with 2 additions and 6 deletions
|
@ -24,9 +24,6 @@ use rustc_plugin;
|
|||
#[macro_use]
|
||||
extern crate matches as matches_macro;
|
||||
|
||||
#[macro_use]
|
||||
extern crate serde_derive;
|
||||
|
||||
#[macro_use]
|
||||
extern crate lazy_static;
|
||||
|
||||
|
|
|
@ -7,7 +7,6 @@ use std::io::Read;
|
|||
use syntax::{ast, codemap};
|
||||
use toml;
|
||||
use std::sync::Mutex;
|
||||
|
||||
/// Get the configuration file from arguments.
|
||||
pub fn file_from_args(
|
||||
args: &[codemap::Spanned<ast::NestedMetaItemKind>],
|
||||
|
@ -86,10 +85,10 @@ macro_rules! define_Conf {
|
|||
//
|
||||
#[allow(rust_2018_idioms)]
|
||||
mod helpers {
|
||||
use serde_derive::Deserialize;
|
||||
/// Type used to store lint configuration.
|
||||
#[derive(Deserialize)]
|
||||
#[serde(rename_all="kebab-case")]
|
||||
#[serde(deny_unknown_fields)]
|
||||
#[serde(rename_all="kebab-case", deny_unknown_fields)]
|
||||
pub struct Conf {
|
||||
$(#[$doc] #[serde(default=$rust_name_str)] #[serde(with=$rust_name_str)]
|
||||
pub $rust_name: define_Conf!(TY $($ty)+),)+
|
||||
|
|
Loading…
Reference in a new issue