We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 725adba commit 0bdc4deCopy full SHA for 0bdc4de
src/ir/enum_ty.rs
@@ -72,7 +72,7 @@ impl Enum {
72
73
declaration.visit(|cursor| {
74
let val = if is_signed {
75
- cursor.enum_val_signed().map(|val| EnumVariantValue::Signed(val))
+ cursor.enum_val_signed().map(EnumVariantValue::Signed)
76
} else {
77
if cursor.kind() == CXCursor_EnumConstantDecl {
78
Some(EnumVariantValue::Unsigned(cursor.enum_val_unsigned()))
@@ -84,7 +84,7 @@ impl Enum {
84
let name = cursor.spelling();
85
let comment = cursor.raw_comment();
86
variants.push(EnumVariant::new(name, comment, val));
87
- };
+ }
88
CXChildVisit_Continue
89
});
90
0 commit comments