Make Conf::default available

Fixes RLS
This commit is contained in:
Nick Cameron 2018-09-03 13:57:50 +12:00
parent 131c8f86b2
commit d6f01f3a6c
2 changed files with 2 additions and 2 deletions

View file

@ -171,7 +171,7 @@ pub mod write;
pub mod zero_div_zero;
// end lints modules, do not remove this comment, its used in `update_lints`
use crate::utils::conf::Conf;
pub use crate::utils::conf::Conf;
mod reexport {
crate use syntax::ast::{Name, NodeId};

View file

@ -65,7 +65,7 @@ macro_rules! define_Conf {
mod helpers {
use serde_derive::Deserialize;
/// Type used to store lint configuration.
#[derive(Deserialize)]
#[derive(Default, Deserialize)]
#[serde(rename_all="kebab-case", deny_unknown_fields)]
pub struct Conf {
$(#[$doc] #[serde(default=$rust_name_str)] #[serde(with=$rust_name_str)]