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

View file

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