Skip to content

Commit e0bab7b

Browse files
committed
Fix --allowlist-item
1 parent 600f638 commit e0bab7b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

bindgen/ir/context.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2530,7 +2530,11 @@ If you encounter an error missing from this list, please file an issue or a PR!"
25302530
);
25312531
let name = prefix_path[1..].join("::");
25322532
prefix_path.pop().unwrap();
2533-
self.options().allowlisted_vars.matches(name)
2533+
self.options().allowlisted_vars.matches(&name)
2534+
|| self
2535+
.options()
2536+
.allowlisted_items
2537+
.matches(name)
25342538
})
25352539
}
25362540
}

0 commit comments

Comments
 (0)