mirror of
https://github.com/astral-sh/ruff.git
synced 2025-07-24 05:26:23 +00:00
ruff_db: rename ParseDiagnostic
to OldParseDiagnostic
I missed this in the previous commits.
This commit is contained in:
parent
d7cbe6b7df
commit
b2e90c3f5c
1 changed files with 3 additions and 3 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue