diff options
-rw-r--r-- | libbindgen/src/ir/enum_ty.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libbindgen/src/ir/enum_ty.rs b/libbindgen/src/ir/enum_ty.rs index 0d4f955b..33a4fcfa 100644 --- a/libbindgen/src/ir/enum_ty.rs +++ b/libbindgen/src/ir/enum_ty.rs @@ -49,7 +49,7 @@ impl Enum { } let declaration = ty.declaration().canonical(); - let et = &declaration.enum_type().expect("This should be an enum since we checked above!"); + let et = &declaration.enum_type().expect("Expected an enum type"); let repr = Item::from_ty(et, None, None, ctx).ok(); let mut variants = vec![]; |