chore: upgrade dprint-core to 0.54.1 (#14146)

This commit is contained in:
David Sherret 2022-03-29 13:33:00 -04:00 committed by GitHub
parent d983b577bc
commit 03c71a8b4a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 77 additions and 71 deletions

View file

@ -1063,11 +1063,13 @@ impl Inner {
};
match format_result {
Ok(new_text) => Some(text::get_edits(
document.content().as_str(),
&new_text,
document.line_index().as_ref(),
)),
Ok(new_text) => new_text.map(|new_text| {
text::get_edits(
document.content().as_str(),
&new_text,
document.line_index().as_ref(),
)
}),
Err(err) => {
// TODO(lucacasonato): handle error properly
warn!("Format error: {}", err);