clippy fixes for rust 1.53

This commit is contained in:
Emil Ernerfeldt
2021-06-22 23:38:34 +02:00
parent 60fd70921d
commit 269a4538d9
11 changed files with 24 additions and 25 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ async fn fetch_jsvalue(request: &Request) -> Result<Response, JsValue> {
opts.body(Some(&JsValue::from_str(body)));
}
let request = web_sys::Request::new_with_str_and_init(&url, &opts)?;
let request = web_sys::Request::new_with_str_and_init(url, &opts)?;
request.headers().set("Accept", "*/*")?;
let window = web_sys::window().unwrap();