Skip to content

Commit

Permalink
BUG MAYBE: maybe it is not good to put quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
CGMossa committed Apr 11, 2023
1 parent 03369d3 commit b59b601
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -494,11 +494,11 @@ fn generate_bindings(r_paths: &InstallationPaths, version_info: &RVersionInfo) {

// Join into a regex pattern to supply into bindgen::Builder.
let allowlist_pattern = allowlist
.difference(&get_non_api()) // Exclude non-API calls
.map(|s| s.to_owned())
.collect::<Vec<String>>()
.join("|");
let allowlist_pattern = format!("\"{allowlist_pattern}\"");
// Exclude non-API calls
.difference(&get_non_api())
.cloned()
.collect::<Vec<_>>();
let allowlist_pattern = allowlist_pattern.join("|");

// The bindgen::Builder is the main entry point
// to bindgen, and lets you build up options for
Expand Down

0 comments on commit b59b601

Please sign in to comment.