commit | e0bab7bfb060177c4cd1aa68da7dd328a55ed32b | [log] [tgz] |
---|---|---|
author | Christian Poveda <git@pvdrz.com> | Tue Apr 30 11:11:49 2024 -0500 |
committer | Christian Poveda Ruiz <31802960+pvdrz@users.noreply.github.com> | Tue Apr 30 16:20:47 2024 +0000 |
tree | f45952dbc573fad7c3352c25d56f23074b7be5a5 | |
parent | 600f63895f73c80d6bf7ff3c71b86a068d1663d2 [diff] |
Fix `--allowlist-item`
diff --git a/bindgen/ir/context.rs b/bindgen/ir/context.rs index c4465df..2e608b0 100644 --- a/bindgen/ir/context.rs +++ b/bindgen/ir/context.rs
@@ -2530,7 +2530,11 @@ ); let name = prefix_path[1..].join("::"); prefix_path.pop().unwrap(); - self.options().allowlisted_vars.matches(name) + self.options().allowlisted_vars.matches(&name) + || self + .options() + .allowlisted_items + .matches(name) }) } }