Skip to content

Commit d9f895b

Browse files
Format Rust code using rustfmt
1 parent 1135751 commit d9f895b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/hyperapp.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,9 @@ pub fn get_request_header(name: &str) -> Option<String> {
8888
.current_http_context
8989
.as_ref()
9090
.and_then(|ctx| {
91-
ctx.request.headers().get(name)
91+
ctx.request
92+
.headers()
93+
.get(name)
9294
.and_then(|value| value.to_str().ok())
9395
.map(|s| s.to_string())
9496
})

0 commit comments

Comments
 (0)