Skip to content

Commit 9063e18

Browse files
committed
cargo fmt
1 parent a6fa0e7 commit 9063e18

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/lib.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ impl conduit::Headers for Parts {
2121
/// If the value of a header is not valid UTF-8, that value
2222
/// is replaced with the emtpy string.
2323
fn find(&self, key: &str) -> Option<Vec<&str>> {
24-
let values = self.headers()
24+
let values = self
25+
.headers()
2526
.get_all(key)
2627
.iter()
2728
.map(|v| v.to_str().unwrap_or(""))
@@ -46,7 +47,8 @@ impl conduit::Headers for Parts {
4647
let mut all = Vec::new();
4748
for key in self.headers().keys() {
4849
let key = key.as_str();
49-
let values = self.find(key)
50+
let values = self
51+
.find(key)
5052
.expect("all keys should have at least one value");
5153
all.push((key, values));
5254
}
@@ -135,7 +137,8 @@ impl conduit::Request for ConduitRequest {
135137
///
136138
/// If the header is not present or invalid UTF-8, then the empty string is returned
137139
fn host(&self) -> conduit::Host<'_> {
138-
let host = self.parts
140+
let host = self
141+
.parts
139142
.headers()
140143
.get("host")
141144
.map(|h| h.to_str().unwrap_or(""))

0 commit comments

Comments
 (0)