Skip to content

Commit 9bda48e

Browse files
committed
A few minor cleanups
1 parent 5b6a8c6 commit 9bda48e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ fn header_val<'a>(header: Vec<&'a str>) -> Cow<'a, str> {
102102
}
103103
}
104104

105-
fn res_header_val<'a>(header: &'a Vec<String>) -> Cow<'a, str> {
105+
fn res_header_val<'a>(header: &'a [String]) -> Cow<'a, str> {
106106
if header.len() == 1 {
107107
Cow::Borrowed(&header[0])
108108
} else {
@@ -294,9 +294,9 @@ mod tests {
294294
body: &'static str,
295295
) -> SimpleHandler {
296296
SimpleHandler {
297-
map: map,
298-
status: status,
299-
body: body,
297+
map,
298+
status,
299+
body,
300300
}
301301
}
302302
}

0 commit comments

Comments
 (0)