Skip to content

Commit 3e14ec8

Browse files
committed
f
1 parent 5c1af30 commit 3e14ec8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

bindings/rust/src/lib.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,9 @@ impl TypedExecutionResult {
311311
impl Instance {
312312
/// Get a read-only pointer to the module.
313313
unsafe fn get_module_ptr(&self) -> *const sys::FizzyModule {
314-
sys::fizzy_get_instance_module(self.0.as_ptr())
314+
let ptr = sys::fizzy_get_instance_module(self.0.as_ptr());
315+
debug_assert!(!ptr.is_null());
316+
ptr
315317
}
316318

317319
/// Get a non-owned module instance.

0 commit comments

Comments
 (0)