RingBuf -> VecDeque for other platforms, as_slice_with_nul -> as_bytes_with_nul
This commit is contained in:
parent
9bb41bf277
commit
0389c834e4
7 changed files with 18 additions and 18 deletions
|
|
@ -8,7 +8,7 @@ use super::ffi;
|
|||
fn with_c_str<F, T>(s: &str, f: F) -> T where F: FnOnce(*const libc::c_char) -> T {
|
||||
use std::ffi::CString;
|
||||
let c_str = CString::from_slice(s.as_bytes());
|
||||
f(c_str.as_slice_with_nul().as_ptr())
|
||||
f(c_str.as_bytes_with_nul().as_ptr())
|
||||
}
|
||||
|
||||
pub struct HeadlessContext {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue