Skip to content

Commit 3c28438

Browse files
committed
f
1 parent d677fd6 commit 3c28438

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

bindings/rust/src/lib.rs

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

520520
/// Get a non-owned module instance.
521521
pub fn get_module(&self) -> &Module {
522+
debug_assert!(!self.module.owned);
522523
&self.module
523524
}
524525

0 commit comments

Comments
 (0)