Skip to content

Commit

Permalink
fix: fix build with features=tracing (#319)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshleeb authored Oct 29, 2021
1 parent 40c121f commit 0d8be38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/format_text.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ fn inner_format(parsed_source: &ParsedSource, config: &Configuration) -> Result<
#[cfg(feature = "tracing")]
pub fn trace_file(file_path: &Path, file_text: &str, config: &Configuration) -> dprint_core::formatting::TracingResult {
let parsed_source = parse_swc_ast(file_path, file_text).unwrap();
ensure_no_specific_syntax_errors(parsed_source).unwrap();
ensure_no_specific_syntax_errors(&parsed_source).unwrap();
dprint_core::formatting::trace_printing(|| parse(&parsed_source, config), config_to_print_options(file_text, config))
}

Expand Down

0 comments on commit 0d8be38

Please sign in to comment.