forked from libre-chip/fayalite
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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue