Add deprecation message for top-level lint settings (#9582)

This commit is contained in:
Micha Reiser 2024-01-29 18:52:49 +01:00 committed by Zanie Blue
parent c3b33e9c4d
commit c2bf725086
7 changed files with 263 additions and 10 deletions

View file

@ -481,9 +481,7 @@ pub struct LintOptions {
/// Newtype wrapper for [`LintCommonOptions`] that allows customizing the JSON schema and omitting the fields from the [`OptionsMetadata`].
#[derive(Debug, PartialEq, Eq, Default, Serialize, Deserialize)]
#[serde(transparent)]
pub struct DeprecatedTopLevelLintOptions {
pub common: LintCommonOptions,
}
pub struct DeprecatedTopLevelLintOptions(pub LintCommonOptions);
impl OptionsMetadata for DeprecatedTopLevelLintOptions {
fn record(_visit: &mut dyn Visit) {