File: fix-tests

package info (click to toggle)
rust-librocksdb-sys 0.17.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 256 kB
  • sloc: ansic: 44; sh: 19; makefile: 9
file content (11 lines) | stat: -rw-r--r-- 319 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
--- a/src/test.rs
+++ b/src/test.rs
@@ -20,7 +20,7 @@
 
 use super::*;
 
-pub fn error_message(ptr: *const i8) -> String {
+pub fn error_message(ptr: *const c_char) -> String {
     let c_str = unsafe { CStr::from_ptr(ptr as *const _) };
     let s = str::from_utf8(c_str.to_bytes()).unwrap().to_owned();
     unsafe {