ruff_db: rename `ParseDiagnostic` to `OldParseDiagnostic`

I missed this in the previous commits.
This commit is contained in:
Andrew Gallant 2025-03-03 08:31:24 -05:00 committed by Andrew Gallant
parent d7cbe6b7df
commit b2e90c3f5c
1 changed files with 3 additions and 3 deletions

View File

@ -247,18 +247,18 @@ impl DisplayDiagnosticConfig {
} }
#[derive(Debug)] #[derive(Debug)]
pub struct ParseDiagnostic { pub struct OldParseDiagnostic {
file: File, file: File,
error: ParseError, error: ParseError,
} }
impl ParseDiagnostic { impl OldParseDiagnostic {
pub fn new(file: File, error: ParseError) -> Self { pub fn new(file: File, error: ParseError) -> Self {
Self { file, error } Self { file, error }
} }
} }
impl OldDiagnosticTrait for ParseDiagnostic { impl OldDiagnosticTrait for OldParseDiagnostic {
fn id(&self) -> DiagnosticId { fn id(&self) -> DiagnosticId {
DiagnosticId::InvalidSyntax DiagnosticId::InvalidSyntax
} }