We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0942c16 commit 37490caCopy full SHA for 37490ca
bindings/rust/src/lib.rs
@@ -378,7 +378,9 @@ impl Instance {
378
379
/// Get a read-only pointer to the module.
380
unsafe fn get_module_ptr(&self) -> *const sys::FizzyModule {
381
- sys::fizzy_get_instance_module(self.0.as_ptr())
+ let ptr = sys::fizzy_get_instance_module(self.0.as_ptr());
382
+ debug_assert!(!ptr.is_null());
383
+ ptr
384
}
385
386
/// Get a non-owned module instance.
0 commit comments