Remove closure

This commit is contained in:
Aviv Palivoda committed 2019-05-03 23:52:02 +03:00
1 parent d121b422b6
commit c57fd1b96e
1 file changed
+1 -4
+1 -4
View File
@@ -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()