diff --git a/crates/red_knot_python_semantic/src/types/diagnostic.rs b/crates/red_knot_python_semantic/src/types/diagnostic.rs index 2f08b84f88..d15cb4fa15 100644 --- a/crates/red_knot_python_semantic/src/types/diagnostic.rs +++ b/crates/red_knot_python_semantic/src/types/diagnostic.rs @@ -11,7 +11,7 @@ use crate::{declare_lint, Db}; use ruff_db::diagnostic::{Diagnostic, DiagnosticId, Severity, Span}; use ruff_db::files::File; use ruff_python_ast::{self as ast, AnyNodeRef}; -use ruff_text_size::{Ranged, TextRange}; +use ruff_text_size::TextRange; use rustc_hash::FxHashSet; use std::borrow::Cow; use std::fmt::Formatter; @@ -811,12 +811,6 @@ impl Diagnostic for TypeCheckDiagnostic { } } -impl Ranged for TypeCheckDiagnostic { - fn range(&self) -> TextRange { - self.range - } -} - /// A collection of type check diagnostics. /// /// The diagnostics are wrapped in an `Arc` because they need to be cloned multiple times