fix warning on macos

This commit is contained in:
Wez Furlong committed 2024-01-20 12:57:13 -07:00
1 parent 6fd45c1223
commit 162b94cb67
1 file changed
+2 -2
+2 -2
View File
@@ -146,8 +146,8 @@ pub fn set_lang_from_locale() {
let country_code = nsstring_to_str(country_code_obj);
let candidate = format!("{}_{}.UTF-8", lang_code, country_code);
let candidate_cstr = std::ffi::CString::new(candidate.as_bytes().clone())
.expect("make cstr from str");
let candidate_cstr =
std::ffi::CString::new(candidate.as_bytes()).expect("make cstr from str");
// If this looks like a working locale then export it to
// the environment so that our child processes inherit it.