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)]
|
||||
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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue