mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-02 19:39:49 +09:00
Follow clippy's advice
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user