Follow clippy's advice

This commit is contained in:
coolreader18
2019-02-23 15:05:52 -06:00
parent fd184a1e68
commit ff66bb602e

View File

@@ -99,7 +99,7 @@ fn browser_fetch(vm: &mut VirtualMachine, args: PyFuncArgs) -> PyResult {
.expect("val to be of type Response");
response_format.get_response(&response)
})
.and_then(|prom| JsFuture::from(prom))
.and_then(JsFuture::from)
.then(move |val| {
let vm = &mut acc_vm
.upgrade()