enums only as repr(u8)
This commit is contained in:
parent
30cd320e66
commit
df079b7af6
|
@ -130,7 +130,7 @@ impl RustType for Type {
|
|||
pub fn generate_enum<W: Write>(enm: &Enum, _sdk: &Sdk, w: &mut W) -> anyhow::Result<()> {
|
||||
let Enum { name, values } = enm;
|
||||
|
||||
writeln!(w, "#[repr(C, u8)]")?;
|
||||
writeln!(w, "#[repr(u8)]")?;
|
||||
writeln!(
|
||||
w,
|
||||
"#[derive(Debug, Copy, Clone, Eq, PartialEq, Ord, PartialOrd)]"
|
||||
|
|
Loading…
Reference in a new issue