diff --git a/bindgen-tests/tests/tests.rs b/bindgen-tests/tests/tests.rs index 0e15155d92..c096b2e81e 100644 --- a/bindgen-tests/tests/tests.rs +++ b/bindgen-tests/tests/tests.rs @@ -654,7 +654,7 @@ fn build_flags_output_helper(builder: &bindgen::Builder) { let flags_quoted: Vec = 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);