diff options
author | Tai Sassen-Liang <tsl@rupsvak.net> | 2016-11-20 18:48:13 +0100 |
---|---|---|
committer | Tai Sassen-Liang <tsl@rupsvak.net> | 2016-11-20 18:48:13 +0100 |
commit | ffeeba5670aa38ea02a82b93d8b4a4eefc781253 (patch) | |
tree | 6727101386bbdfaf23ca1c33ef898b924c95483e | |
parent | 9ac13adc1ff5a8f102b5efdce35411379a772a43 (diff) |
Update error wording for enum_type().expect()
-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![]; |