Skip to content

Commit ff41a4f

Browse files
committed
f
1 parent d57eb01 commit ff41a4f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

bindings/rust/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -506,6 +506,7 @@ impl Instance {
506506

507507
/// Get a non-owned module instance.
508508
pub fn get_module(&self) -> &Module {
509+
debug_assert!(!self.module.owned);
509510
&self.module
510511
}
511512

0 commit comments

Comments
 (0)