mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-28 04:45:01 +00:00
Extract message emitters from Printer (#3895)
This commit is contained in:
parent
333f1bd9ce
commit
9209e57c5a
29 changed files with 1470 additions and 592 deletions
|
@ -213,7 +213,7 @@ pub fn check(contents: &str, options: JsValue) -> Result<JsValue, JsValue> {
|
|||
} else {
|
||||
Some(ExpandedFix {
|
||||
message: message.kind.suggestion,
|
||||
edits: message.fix.edits().to_vec(),
|
||||
edits: message.fix.into_edits(),
|
||||
})
|
||||
},
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue