mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-03 15:15:33 +00:00
[red-knot] Make Diagnostic::file
optional (#15640)
This commit is contained in:
parent
1ecd97855e
commit
23c222368e
7 changed files with 36 additions and 26 deletions
|
@ -402,8 +402,8 @@ impl Diagnostic for IOErrorDiagnostic {
|
|||
self.error.to_string().into()
|
||||
}
|
||||
|
||||
fn file(&self) -> File {
|
||||
self.file
|
||||
fn file(&self) -> Option<File> {
|
||||
Some(self.file)
|
||||
}
|
||||
|
||||
fn range(&self) -> Option<TextRange> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue