mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 18:58:36 +00:00
Rust: Ignore dead code warning for unused enums
Strangely I wasn't able to reproduce the problem in a test, and we already have tests that have enums which are not fully used. Fix #5661
This commit is contained in:
parent
d1f5b536c0
commit
a957b7fd98
1 changed files with 1 additions and 0 deletions
|
@ -415,6 +415,7 @@ fn generate_enum(en: &std::rc::Rc<Enumeration>) -> TokenStream {
|
|||
})
|
||||
});
|
||||
quote! {
|
||||
#[allow(dead_code)]
|
||||
#[derive(Default, Copy, Clone, PartialEq, Debug)]
|
||||
#rust_attr
|
||||
pub enum #enum_name {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue