(value: *const i8)
| 1601 | } |
| 1602 | |
| 1603 | unsafe fn native_c_string(value: *const i8) -> Option<String> { |
| 1604 | if value.is_null() { |
| 1605 | return None; |
| 1606 | } |
| 1607 | CStr::from_ptr(value).to_str().ok().map(ToOwned::to_owned) |
| 1608 | } |
| 1609 | |
| 1610 | unsafe fn take_native_error(error: *mut i8, fallback: &str) -> AppError { |
| 1611 | if error.is_null() { |
no outgoing calls
no test coverage detected