mirror of https://github.com/astral-sh/ruff
ruff_db: rename `ParseDiagnostic` to `OldParseDiagnostic`
I missed this in the previous commits.
This commit is contained in:
parent
d7cbe6b7df
commit
b2e90c3f5c
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue