Skip to content

Commit

Permalink
Use name instead of absolute path for checking allow/blocklist.
Browse files Browse the repository at this point in the history
  • Loading branch information
reitermarkus committed Feb 20, 2024
1 parent 524bb5e commit 6194ddb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bindgen/ir/context.rs
Expand Up @@ -2509,7 +2509,7 @@ If you encounter an error missing from this list, please file an issue or a PR!"
if self
.options()
.allowlisted_files
.matches(file.path().display().to_string())
.matches(file.name())
{
return true;
}
Expand Down
2 changes: 1 addition & 1 deletion bindgen/ir/item.rs
Expand Up @@ -645,7 +645,7 @@ impl Item {
if ctx
.options()
.blocklisted_files
.matches(file.path().display().to_string())
.matches(file.name())
{
return true;
}
Expand Down

0 comments on commit 6194ddb

Please sign in to comment.