summaryrefslogtreecommitdiff
path: root/libbindgen/src/ir/var.rs
diff options
context:
space:
mode:
Diffstat (limited to 'libbindgen/src/ir/var.rs')
-rw-r--r--libbindgen/src/ir/var.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/libbindgen/src/ir/var.rs b/libbindgen/src/ir/var.rs
index e18af91b..329393fa 100644
--- a/libbindgen/src/ir/var.rs
+++ b/libbindgen/src/ir/var.rs
@@ -147,9 +147,7 @@ impl ClangSubItemParser for Var {
(TypeKind::Pointer(char_ty), VarType::String(val))
}
EvalResult::Int(Wrapping(value)) => {
- let kind = ctx.options()
- .type_chooser
- .as_ref()
+ let kind = ctx.type_chooser()
.and_then(|c| c.int_macro(&name, value))
.unwrap_or_else(|| {
if value < 0 {