Skip to content

Commit 4ba6b47

Browse files
committed
Wrap unlock in unsfae
1 parent fa76d10 commit 4ba6b47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vm/src/stdlib/imp.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ fn imp_release_lock(vm: &VirtualMachine) -> PyResult<()> {
2929
if !IMP_LOCK.is_locked() {
3030
Err(vm.new_runtime_error("Global import lock not held".to_owned()))
3131
} else {
32-
IMP_LOCK.unlock();
32+
unsafe { IMP_LOCK.unlock() };
3333
Ok(())
3434
}
3535
}

0 commit comments

Comments
 (0)