Fix unimported CString

This commit is contained in:
Alexandre Bury 2020-08-25 23:27:48 -07:00
parent e2f79776a4
commit eec4dd8e68

View File

@ -53,7 +53,7 @@ impl Backend {
::std::env::set_var("ESCDELAY", "25"); ::std::env::set_var("ESCDELAY", "25");
if cfg!(unix) { if cfg!(unix) {
let buf = CString::new("").unwrap(); let buf = std::ffi::CString::new("").unwrap();
unsafe { libc::setlocale(libc::LC_ALL, buf.as_ptr()) }; unsafe { libc::setlocale(libc::LC_ALL, buf.as_ptr()) };
} }