Skip to content
This repository has been archived by the owner on Sep 3, 2021. It is now read-only.

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
arv committed Jun 16, 2021
1 parent afa7ff7 commit 2a1ae9a
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/fetch/browser_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,8 @@ impl Client {
.map_err(UnableToCreateRequest)?;
let h = web_sys_req.headers();
for (k, v) in http_req.headers().iter() {
h.set(
k.as_ref(),
v.to_str().map_err(InvalidRequestHeader)?,
)
.map_err(UnableToSetRequestHeader)?;
h.set(k.as_ref(), v.to_str().map_err(InvalidRequestHeader)?)
.map_err(UnableToSetRequestHeader)?;
}

let http_req_promise = fetch_with_request(&web_sys_req)?;
Expand Down

0 comments on commit 2a1ae9a

Please sign in to comment.