Skip to content

Commit d6f01f3

Browse files
committed
Make Conf::default available
Fixes RLS
1 parent 131c8f8 commit d6f01f3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clippy_lints/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ pub mod write;
171171
pub mod zero_div_zero;
172172
// end lints modules, do not remove this comment, it’s used in `update_lints`
173173

174-
use crate::utils::conf::Conf;
174+
pub use crate::utils::conf::Conf;
175175

176176
mod reexport {
177177
crate use syntax::ast::{Name, NodeId};

clippy_lints/src/utils/conf.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ macro_rules! define_Conf {
6565
mod helpers {
6666
use serde_derive::Deserialize;
6767
/// Type used to store lint configuration.
68-
#[derive(Deserialize)]
68+
#[derive(Default, Deserialize)]
6969
#[serde(rename_all="kebab-case", deny_unknown_fields)]
7070
pub struct Conf {
7171
$(#[$doc] #[serde(default=$rust_name_str)] #[serde(with=$rust_name_str)]

0 commit comments

Comments
 (0)