mirror of
https://github.com/fluencelabs/sqlite-wasm-connector
synced 2025-03-15 06:20:50 +00:00
Make it compile on stable
This commit is contained in:
parent
24f63fc0c9
commit
1ed353756e
@ -151,9 +151,11 @@ macro_rules! c_str_to_string(
|
||||
|
||||
macro_rules! path_to_cstr(
|
||||
($path:expr) => (match $path.to_str() {
|
||||
Some(path) => match ::std::ffi::CString::new(path) {
|
||||
Ok(string) => string,
|
||||
_ => raise!("failed to process a path"),
|
||||
Some(path) => {
|
||||
match ::std::ffi::CString::new(path) {
|
||||
Ok(string) => string,
|
||||
_ => raise!("failed to process a path"),
|
||||
}
|
||||
}
|
||||
_ => raise!("failed to process a path"),
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user