Use expect() instead of matching
Clearer pointer handling in the FFI