mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-30 05:45:24 +00:00
Remove Fix::from(Edit)
and add deprecated replacement methods to Diagnostic
s (#4275)
This commit is contained in:
parent
0801f14046
commit
4d5a339d9e
51 changed files with 205 additions and 144 deletions
|
@ -38,9 +38,3 @@ impl Fix {
|
|||
self.edits
|
||||
}
|
||||
}
|
||||
|
||||
impl From<Edit> for Fix {
|
||||
fn from(edit: Edit) -> Self {
|
||||
Self { edits: vec![edit] }
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue