Use #[expect(lint)] over #[allow(lint)] where possible (#17822)

This commit is contained in:
Micha Reiser 2025-05-03 21:20:31 +02:00 committed by GitHub
parent 8535af8516
commit fa628018b2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
148 changed files with 221 additions and 268 deletions

View file

@ -1150,14 +1150,14 @@ impl Flake8BanditOptions {
extend_markup_names: self
.extend_markup_names
.or_else(|| {
#[allow(deprecated)]
#[expect(deprecated)]
ruff_options.and_then(|options| options.extend_markup_names.clone())
})
.unwrap_or_default(),
allowed_markup_calls: self
.allowed_markup_calls
.or_else(|| {
#[allow(deprecated)]
#[expect(deprecated)]
ruff_options.and_then(|options| options.allowed_markup_calls.clone())
})
.unwrap_or_default(),
@ -1308,7 +1308,7 @@ pub struct Flake8BuiltinsOptions {
impl Flake8BuiltinsOptions {
pub fn into_settings(self) -> ruff_linter::rules::flake8_builtins::settings::Settings {
#[allow(deprecated)]
#[expect(deprecated)]
ruff_linter::rules::flake8_builtins::settings::Settings {
ignorelist: self
.ignorelist
@ -3951,7 +3951,7 @@ impl From<LintOptionsWire> for LintOptions {
} = value;
LintOptions {
#[allow(deprecated)]
#[expect(deprecated)]
common: LintCommonOptions {
allowed_confusables,
dummy_variable_rgx,