mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-23 05:03:21 +00:00
Merge pull request #3114 from nrc/pub-conf
Make `Conf::default` available
This commit is contained in:
commit
6141339f88
2 changed files with 2 additions and 2 deletions
|
@ -171,7 +171,7 @@ pub mod write;
|
||||||
pub mod zero_div_zero;
|
pub mod zero_div_zero;
|
||||||
// end lints modules, do not remove this comment, it’s used in `update_lints`
|
// 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 {
|
mod reexport {
|
||||||
crate use syntax::ast::{Name, NodeId};
|
crate use syntax::ast::{Name, NodeId};
|
||||||
|
|
|
@ -65,7 +65,7 @@ macro_rules! define_Conf {
|
||||||
mod helpers {
|
mod helpers {
|
||||||
use serde_derive::Deserialize;
|
use serde_derive::Deserialize;
|
||||||
/// Type used to store lint configuration.
|
/// Type used to store lint configuration.
|
||||||
#[derive(Deserialize)]
|
#[derive(Default, Deserialize)]
|
||||||
#[serde(rename_all="kebab-case", deny_unknown_fields)]
|
#[serde(rename_all="kebab-case", deny_unknown_fields)]
|
||||||
pub struct Conf {
|
pub struct Conf {
|
||||||
$(#[$doc] #[serde(default=$rust_name_str)] #[serde(with=$rust_name_str)]
|
$(#[$doc] #[serde(default=$rust_name_str)] #[serde(with=$rust_name_str)]
|
||||||
|
|
Loading…
Reference in a new issue