mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-28 18:59:04 +08:00
Remove closure
This commit is contained in:
1 parent
d121b422b6
commit
c57fd1b96e
1 file changed
+1
-4
@@ -366,10 +366,7 @@ fn browser_load_module(module: PyStringRef, path: PyStringRef, vm: &VirtualMachi
|
||||
.expect("val to be of type Response");
|
||||
response.text()
|
||||
})
|
||||
.and_then(move |text_value: Promise| {
|
||||
// Convert this other `Promise` into a rust `Future`.
|
||||
JsFuture::from(text_value)
|
||||
})
|
||||
.and_then(JsFuture::from)
|
||||
.and_then(move |text| {
|
||||
let stored_vm = &weak_vm
|
||||
.upgrade()
|
||||
|
||||
Reference in new issue
Block a user