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