Skip to content

Commit

Permalink
Silent "warnings" in the rust test driver when using the macro
Browse files Browse the repository at this point in the history
Otherwse they show up as error because of the deny(warning) in the test.
This is not a problem in the CI because CI uses --all-features that use
the build-time thing, but this is a problem when running locally
  • Loading branch information
ogoffart committed Mar 24, 2023
1 parent 9529be2 commit 259444b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/driver/rust/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ fn generate_macro(
output.write_all(b"#[test] #[ignore] fn ignored_because_string_template() {{}}")?;
return Ok(false);
}
// to silence all the warnings in .slint files that would be turned into errors
output.write_all(b"#![allow(deprecated)]")?;
let include_paths = test_driver_lib::extract_include_paths(source);
output.write_all(b"slint::slint!{")?;
for path in include_paths {
Expand Down

0 comments on commit 259444b

Please sign in to comment.