Skip to content

Commit 0d8be38

Browse files
authored
fix: fix build with features=tracing (#319)
1 parent 40c121f commit 0d8be38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/format_text.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ fn inner_format(parsed_source: &ParsedSource, config: &Configuration) -> Result<
7272
#[cfg(feature = "tracing")]
7373
pub fn trace_file(file_path: &Path, file_text: &str, config: &Configuration) -> dprint_core::formatting::TracingResult {
7474
let parsed_source = parse_swc_ast(file_path, file_text).unwrap();
75-
ensure_no_specific_syntax_errors(parsed_source).unwrap();
75+
ensure_no_specific_syntax_errors(&parsed_source).unwrap();
7676
dprint_core::formatting::trace_printing(|| parse(&parsed_source, config), config_to_print_options(file_text, config))
7777
}
7878

0 commit comments

Comments
 (0)