Skip to content

Commit

Permalink
Don't use deprecated shlex::quote.
Browse files Browse the repository at this point in the history
  • Loading branch information
reitermarkus committed Feb 10, 2024
1 parent be6f1d3 commit 67e9a22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bindgen-tests/tests/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,7 @@ fn build_flags_output_helper(builder: &bindgen::Builder) {

let flags_quoted: Vec<String> = command_line_flags
.iter()
.map(|x| format!("{}", shlex::quote(x)))
.map(|x| format!("{}", shlex::try_quote(x).unwrap()))
.collect();
let flags_str = flags_quoted.join(" ");
println!("{}", flags_str);
Expand Down

0 comments on commit 67e9a22

Please sign in to comment.