Skip to content

Commit 95d3738

Browse files
committed
post-rebase fixes
1 parent b762baa commit 95d3738

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

crates/ruff_linter/src/rules/numpy/rules/numpy_2_0_deprecation.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use ruff_diagnostics::{AutofixKind, Diagnostic, Edit, Fix, Violation};
1+
use ruff_diagnostics::{Diagnostic, Edit, Fix, FixAvailability, Violation};
22
use ruff_macros::{derive_message_formats, violation};
33
use ruff_python_ast::Expr;
44
use ruff_text_size::Ranged;
@@ -25,7 +25,7 @@ pub struct Numpy2Deprecation {
2525
}
2626

2727
impl Violation for Numpy2Deprecation {
28-
const AUTOFIX: AutofixKind = AutofixKind::Sometimes;
28+
const FIX_AVAILABILITY: FixAvailability = FixAvailability::Sometimes;
2929

3030
#[derive_message_formats]
3131
fn message(&self) -> String {
@@ -36,7 +36,7 @@ impl Violation for Numpy2Deprecation {
3636
format!("`np.{existing}` will be removed in the NumPy 2.0. {migration_guide}")
3737
}
3838

39-
fn autofix_title(&self) -> Option<String> {
39+
fn fix_title(&self) -> Option<String> {
4040
let Numpy2Deprecation {
4141
migration_guide, ..
4242
} = self;

0 commit comments

Comments
 (0)