mirror of
https://github.com/denoland/deno.git
synced 2025-08-03 10:33:54 +00:00
chore: upgrade dprint-core to 0.54.1 (#14146)
This commit is contained in:
parent
d983b577bc
commit
03c71a8b4a
8 changed files with 77 additions and 71 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue