From 454ec8420490ac4fd7fec3f5099b3e225ce0c957 Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Sat, 10 Feb 2024 01:33:26 +0100 Subject: [PATCH] Don't use deprecated `shlex::quote`. --- bindgen-tests/tests/tests.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);