Skip to content

Commit b580372

Browse files
Format Rust code using rustfmt
1 parent 2728002 commit b580372

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
@@ -90,7 +90,9 @@ pub fn get_request_header(name: &str) -> Option<String> {
9090
.and_then(|ctx| {
9191
// Convert string to HeaderName using process_lib's re-exported type
9292
let header_name = http::HeaderName::from_bytes(name.as_bytes()).ok()?;
93-
ctx.request.headers().get(&header_name)
93+
ctx.request
94+
.headers()
95+
.get(&header_name)
9496
.and_then(|value| value.to_str().ok())
9597
.map(|s| s.to_string())
9698
})

0 commit comments

Comments
 (0)