diff --git a/sixtyfps_compiler/tests/syntax_tests.rs b/sixtyfps_compiler/tests/syntax_tests.rs index 1e3b55a26..e18c095d2 100644 --- a/sixtyfps_compiler/tests/syntax_tests.rs +++ b/sixtyfps_compiler/tests/syntax_tests.rs @@ -42,7 +42,11 @@ fn process_file(path: &std::path::Path) -> std::io::Result { process_file_source(path, source, false) } -fn process_file_source(path: &std::path::Path, source: String, silent: bool) -> std::io::Result { +fn process_file_source( + path: &std::path::Path, + source: String, + silent: bool, +) -> std::io::Result { let (res, mut diag) = sixtyfps_compiler::parser::parse(&source); diag.current_path = path.to_path_buf(); let mut tr = sixtyfps_compiler::typeregister::TypeRegister::builtin(); @@ -83,8 +87,8 @@ fn process_file_source(path: &std::path::Path, source: String, silent: bool) -> if !diag.inner.is_empty() { println!("{:?}: Unexptected errors: {:#?}", path, diag.inner); - #[cfg(feature = "display-diagnostics")] if !silent { + #[cfg(feature = "display-diagnostics")] diag.print(source); }