We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b6a8c6 commit 9bda48eCopy full SHA for 9bda48e
src/lib.rs
@@ -102,7 +102,7 @@ fn header_val<'a>(header: Vec<&'a str>) -> Cow<'a, str> {
102
}
103
104
105
-fn res_header_val<'a>(header: &'a Vec<String>) -> Cow<'a, str> {
+fn res_header_val<'a>(header: &'a [String]) -> Cow<'a, str> {
106
if header.len() == 1 {
107
Cow::Borrowed(&header[0])
108
} else {
@@ -294,9 +294,9 @@ mod tests {
294
body: &'static str,
295
) -> SimpleHandler {
296
SimpleHandler {
297
- map: map,
298
- status: status,
299
- body: body,
+ map,
+ status,
+ body,
300
301
302
0 commit comments