Skip to content

Commit f310036

Browse files
committed
Fix wasm
1 parent d305d4f commit f310036

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wasm/lib/src/browser_module.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ impl PyPromise {
171171
}
172172

173173
pub fn get_promise_value(obj: &PyObjectRef) -> Promise {
174-
if let Some(promise) = obj.payload.downcast_ref::<PyPromise>() {
174+
if let Some(promise) = obj.payload::<PyPromise>() {
175175
return promise.value.clone();
176176
}
177177
panic!("Inner error getting promise")

0 commit comments

Comments
 (0)