Fix test
This commit is contained in:
parent
39941e6281
commit
572cd358d3
2 changed files with 3 additions and 2 deletions
|
@ -1,8 +1,9 @@
|
|||
#![deny(temporary_cstring_as_ptr)]
|
||||
|
||||
use std::ffi::CString;
|
||||
use std::os::raw::c_char;
|
||||
|
||||
fn some_function(data: *const i8) {}
|
||||
fn some_function(data: *const c_char) {}
|
||||
|
||||
fn main() {
|
||||
some_function(CString::new("").unwrap().as_ptr());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue