silence warning for enums with only one variant
This commit is contained in:
parent
c632e5d570
commit
8c270b0e35
2 changed files with 11 additions and 0 deletions
|
|
@ -888,6 +888,7 @@ impl ToTokens for ParsedEnum {
|
|||
#(#sim_value_from_opaque_match_arms)*
|
||||
}
|
||||
}
|
||||
#[allow(irrefutable_let_patterns)]
|
||||
fn sim_value_clone_from_opaque(
|
||||
&self,
|
||||
value: &mut <Self as ::fayalite::ty::Type>::SimValue,
|
||||
|
|
|
|||
|
|
@ -244,3 +244,13 @@ pub struct MyTypeWithPrivateMembersWithArg<T> {
|
|||
pub(crate) b: MyPubCrateTypeWithArg<T>,
|
||||
pub c: T,
|
||||
}
|
||||
|
||||
#[hdl(outline_generated)]
|
||||
pub enum EnumWithOnlyOneVariant {
|
||||
A,
|
||||
}
|
||||
|
||||
#[hdl(outline_generated)]
|
||||
pub enum EnumWithOnlyOneVariant2<T> {
|
||||
A(T),
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue