mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-03 15:14:35 +00:00
Compile fix
This commit is contained in:
parent
96d5165d28
commit
b3d1a7196c
1 changed files with 6 additions and 2 deletions
|
@ -42,7 +42,11 @@ fn process_file(path: &std::path::Path) -> std::io::Result<bool> {
|
|||
process_file_source(path, source, false)
|
||||
}
|
||||
|
||||
fn process_file_source(path: &std::path::Path, source: String, silent: bool) -> std::io::Result<bool> {
|
||||
fn process_file_source(
|
||||
path: &std::path::Path,
|
||||
source: String,
|
||||
silent: bool,
|
||||
) -> std::io::Result<bool> {
|
||||
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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue