mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-10 05:53:10 +00:00
Make Conf::default
available
Fixes RLS
This commit is contained in:
parent
131c8f86b2
commit
d6f01f3a6c
@ -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 New Issue
Block a user