janitor: Do not warn about unused imports in generated rust code

When testing, we have `deny(wanrings)` set, so this actully makes the
tests error out.
This commit is contained in:
Tobias Hunger 2023-11-01 17:15:15 +01:00 committed by Tobias Hunger
parent 2def4d2495
commit 2adc3713fa

View file

@ -212,6 +212,7 @@ pub fn generate(doc: &Document) -> TokenStream {
const _THE_SAME_VERSION_MUST_BE_USED_FOR_THE_COMPILER_AND_THE_RUNTIME : slint::#version_check = slint::#version_check;
}
pub use #compo_module::{#compo_id #(,#structs_and_enums_ids)* #(,#globals_ids)* #(,#named_exports)*};
#[allow(unused_imports)]
pub use slint::{ComponentHandle as _, Global as _, ModelExt as _};
}
}