Skip to content

Commit

Permalink
Make Conf::default available
Browse files Browse the repository at this point in the history
Fixes RLS
  • Loading branch information
nrc committed Sep 3, 2018
1 parent 131c8f8 commit d6f01f3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion clippy_lints/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ pub mod write;
pub mod zero_div_zero;
// end lints modules, do not remove this comment, it’s used in `update_lints`

use crate::utils::conf::Conf;
pub use crate::utils::conf::Conf;

mod reexport {
crate use syntax::ast::{Name, NodeId};
Expand Down
2 changes: 1 addition & 1 deletion clippy_lints/src/utils/conf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down

0 comments on commit d6f01f3

Please sign in to comment.