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:
Olivier Goffart 2024-07-22 15:19:35 +02:00
parent d1f5b536c0
commit a957b7fd98

View file

@ -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 {