mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-23 17:35:00 +00:00
Fix unimported CString
This commit is contained in:
parent
e2f79776a4
commit
eec4dd8e68
@ -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()) };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user