Skip to content

Commit ef4bca8

Browse files
committed
chore: format
1 parent a995ff7 commit ef4bca8

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

src/format_text.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ use std::borrow::Cow;
22
use std::path::Path;
33
use std::path::PathBuf;
44

5-
use crate::text_changes::apply_text_changes;
65
use crate::text_changes::TextChange;
6+
use crate::text_changes::apply_text_changes;
77
use anyhow::Result;
88
use jsonc_parser::CollectOptions;
99
use jsonc_parser::CommentCollectionStrategy;
@@ -94,7 +94,11 @@ fn validate_output_json(text: &str) -> Result<()> {
9494
match result {
9595
Ok(_) => Ok(()),
9696
Err(err) => {
97-
anyhow::bail!("dprint-plugin-jupyter produced invalid json. Please open an issue with reproduction steps at https://github.com/dprint/dprint-plugin-jupyter/issues\n{:#}\n\n== TEXT ==\n{}", err, text);
97+
anyhow::bail!(
98+
"dprint-plugin-jupyter produced invalid json. Please open an issue with reproduction steps at https://github.com/dprint/dprint-plugin-jupyter/issues\n{:#}\n\n== TEXT ==\n{}",
99+
err,
100+
text
101+
);
98102
}
99103
}
100104
}

src/wasm_plugin.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
use super::configuration::resolve_config;
21
use super::configuration::Configuration;
2+
use super::configuration::resolve_config;
33

44
use dprint_core::configuration::ConfigKeyMap;
55
use dprint_core::configuration::GlobalConfiguration;

0 commit comments

Comments
 (0)