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 authored and emilio committed Feb 11, 2024
1 parent 78a6799 commit 454ec84
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 @@ -654,7 +654,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 454ec84

Please sign in to comment.