mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-29 05:15:12 +00:00
Add deprecation message for top-level lint settings (#9582)
This commit is contained in:
parent
c3b33e9c4d
commit
c2bf725086
7 changed files with 263 additions and 10 deletions
|
@ -29,6 +29,15 @@ pub trait OptionsMetadata {
|
|||
}
|
||||
}
|
||||
|
||||
impl<T> OptionsMetadata for Option<T>
|
||||
where
|
||||
T: OptionsMetadata,
|
||||
{
|
||||
fn record(visit: &mut dyn Visit) {
|
||||
T::record(visit);
|
||||
}
|
||||
}
|
||||
|
||||
/// Metadata of an option that can either be a [`OptionField`] or [`OptionSet`].
|
||||
#[derive(Clone, PartialEq, Eq, Debug)]
|
||||
pub enum OptionEntry {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue