Skip to content

Commit

Permalink
chore: dprint-core 0.66.2 (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
dsherret authored May 6, 2024
1 parent 09a98b3 commit 6501441
Show file tree
Hide file tree
Showing 3 changed files with 149 additions and 18 deletions.
154 changes: 142 additions & 12 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ tracing = ["dprint-core/tracing"]

[dependencies]
anyhow = "1.0.65"
dprint-core = { version = "0.66.1", features = ["formatting"] }
dprint-core = { version = "0.66.2", features = ["formatting"] }
dprint-core-macros = "0.1.0"
itertools = "0.10"
serde = { version = "1.0.145", features = ["derive"] }
Expand All @@ -35,5 +35,5 @@ taplo = { version = "0.12.1", default_features = false }

[dev-dependencies]
debug-here = "0.2"
dprint-development = "0.9.5"
dprint-development = "0.10.1"
serde_json = { version = "1.0" }
9 changes: 5 additions & 4 deletions tests/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ extern crate dprint_plugin_toml;
//#[macro_use] extern crate debug_here;

use std::path::PathBuf;
use std::sync::Arc;
// use std::time::Instant;

use dprint_core::configuration::*;
Expand All @@ -28,15 +29,15 @@ fn test_specs() {
},
{
let global_config = global_config.clone();
move |file_path, file_text, spec_config| {
Arc::new(move |file_path, file_text, spec_config| {
let spec_config: ConfigKeyMap = serde_json::from_value(spec_config.clone().into()).unwrap();
let config_result = resolve_config(spec_config, &global_config);
ensure_no_diagnostics(&config_result.diagnostics);

format_text(file_path, &file_text, &config_result.config)
}
})
},
move |_file_path, _file_text, _spec_config| {
Arc::new(move |_file_path, _file_text, _spec_config| {
#[cfg(feature = "tracing")]
{
let config_result = resolve_config(parse_config_key_map(_spec_config), &global_config);
Expand All @@ -46,7 +47,7 @@ fn test_specs() {

#[cfg(not(feature = "tracing"))]
panic!("\n====\nPlease run with `cargo test --features tracing` to get trace output\n====\n")
},
}),
)
}

Expand Down

0 comments on commit 6501441

Please sign in to comment.