Extract message emitters from Printer (#3895)

This commit is contained in:
Micha Reiser 2023-04-11 09:24:25 +02:00 committed by GitHub
parent 333f1bd9ce
commit 9209e57c5a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
29 changed files with 1470 additions and 592 deletions

View file

@ -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(),
})
},
})