Skip to content

Commit

Permalink
Use ViolationMetadata
Browse files Browse the repository at this point in the history
  • Loading branch information
uranusjr committed Nov 27, 2024
1 parent 5130325 commit 1f5ec14
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/ruff_linter/src/rules/airflow/rules/removal_in_3.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use ruff_diagnostics::{Diagnostic, Violation};
use ruff_macros::{derive_message_formats, violation};
use ruff_macros::{derive_message_formats, ViolationMetadata};
use ruff_python_ast::{name::QualifiedName, Arguments, Expr, ExprAttribute, ExprCall};
use ruff_python_semantic::Modules;
use ruff_text_size::Ranged;
Expand Down Expand Up @@ -35,8 +35,8 @@ enum Replacement {
///
/// yesterday = today - timedelta(days=1)
/// ```
#[violation]
pub struct Airflow3Removal {
#[derive(ViolationMetadata)]
pub(crate) struct Airflow3Removal {
deprecated: String,
replacement: Replacement,
}
Expand Down

0 comments on commit 1f5ec14

Please sign in to comment.