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 6092c07 commit 08e7ec9Copy full SHA for 08e7ec9
vm/src/vm/interpreter.rs
@@ -97,9 +97,9 @@ impl Interpreter {
97
///
98
/// See [`finalize`] for the finalization steps.
99
/// See also [`enter`] for pure function call to obtain Python exception.
100
- pub fn run<F, R>(self, f: F) -> u8
+ pub fn run<F>(self, f: F) -> u8
101
where
102
- F: FnOnce(&VirtualMachine) -> PyResult<R>,
+ F: FnOnce(&VirtualMachine) -> PyResult<()>,
103
{
104
let res = self.enter(|vm| f(vm));
105
self.finalize(res.err())
0 commit comments