Skip to content

Commit 4d4ec8e

Browse files
committed
Fix code formatting
1 parent 393ac0a commit 4d4ec8e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

examples/hyper/src/lib.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ async fn make_request(
2020
.map_err(map_hyper_error)?;
2121
let text = std::str::from_utf8(&buf).map_err(map_utf8_error)?;
2222
let mut response = Response::ok(text)?;
23-
response.headers_mut().append("Content-Type", "text/html; charset=utf-8")?;
23+
response
24+
.headers_mut()
25+
.append("Content-Type", "text/html; charset=utf-8")?;
2426
Ok(response)
2527
}
2628
#[event(fetch)]

0 commit comments

Comments
 (0)