Skip to content

Commit 08e7ec9

Browse files
committed
Don't let Interpreter::run silently ignore result value
1 parent 6092c07 commit 08e7ec9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vm/src/vm/interpreter.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,9 @@ impl Interpreter {
9797
///
9898
/// See [`finalize`] for the finalization steps.
9999
/// See also [`enter`] for pure function call to obtain Python exception.
100-
pub fn run<F, R>(self, f: F) -> u8
100+
pub fn run<F>(self, f: F) -> u8
101101
where
102-
F: FnOnce(&VirtualMachine) -> PyResult<R>,
102+
F: FnOnce(&VirtualMachine) -> PyResult<()>,
103103
{
104104
let res = self.enter(|vm| f(vm));
105105
self.finalize(res.err())

0 commit comments

Comments
 (0)