mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-23 05:03:21 +00:00
Make Conf::default
available
Fixes RLS
This commit is contained in:
parent
131c8f86b2
commit
d6f01f3a6c
2 changed files with 2 additions and 2 deletions
|
@ -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};
|
||||
|
|
|
@ -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)]
|
||||
|
|
Loading…
Reference in a new issue