diff --git a/lib/src/lib.rs b/lib/src/lib.rs index 71b8016..d353088 100644 --- a/lib/src/lib.rs +++ b/lib/src/lib.rs @@ -94,7 +94,7 @@ pub(crate) fn handle_libquil_error(errno: libquil_error_t) -> Result<(), String> } } -pub(crate) fn get_string_from_pointer_and_free(ptr: *mut i8) -> Result { +pub(crate) fn get_string_from_pointer_and_free(ptr: *mut std::os::raw::c_char) -> Result { unsafe { let s = CStr::from_ptr(ptr).to_str()?.to_string(); libc::free(ptr as *mut _);