File tree Expand file tree Collapse file tree 31 files changed +38
-38
lines changed Expand file tree Collapse file tree 31 files changed +38
-38
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ fn handle(_r: Request, res: Response) {
34
34
struct Foo ;
35
35
36
36
impl hyper:: header:: Header for Foo {
37
- fn header_name ( _ : Option < Foo > ) -> & ' static str {
37
+ fn header_name ( ) -> & ' static str {
38
38
"x-foo"
39
39
}
40
40
fn parse_header ( _: & [ Vec < u8 > ] ) -> Option < Foo > {
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ impl Writer for MockStream {
50
50
struct Foo ;
51
51
52
52
impl hyper:: header:: Header for Foo {
53
- fn header_name ( _ : Option < Foo > ) -> & ' static str {
53
+ fn header_name ( ) -> & ' static str {
54
54
"x-foo"
55
55
}
56
56
fn parse_header ( _: & [ Vec < u8 > ] ) -> Option < Foo > {
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ pub struct Accept(pub Vec<header::QualityItem<mime::Mime>>);
31
31
deref ! ( Accept => Vec <header:: QualityItem <mime:: Mime >>) ;
32
32
33
33
impl header:: Header for Accept {
34
- fn header_name ( _ : Option < Accept > ) -> & ' static str {
34
+ fn header_name ( ) -> & ' static str {
35
35
"Accept"
36
36
}
37
37
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ pub struct AccessControlAllowHeaders(pub Vec<String>);
15
15
16
16
impl header:: Header for AccessControlAllowHeaders {
17
17
#[ inline]
18
- fn header_name ( _ : Option < AccessControlAllowHeaders > ) -> & ' static str {
18
+ fn header_name ( ) -> & ' static str {
19
19
"Access-Control-Allow-Headers"
20
20
}
21
21
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ pub struct AccessControlAllowMethods(pub Vec<method::Method>);
16
16
17
17
impl header:: Header for AccessControlAllowMethods {
18
18
#[ inline]
19
- fn header_name ( _ : Option < AccessControlAllowMethods > ) -> & ' static str {
19
+ fn header_name ( ) -> & ' static str {
20
20
"Access-Control-Allow-Methods"
21
21
}
22
22
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ pub enum AccessControlAllowOrigin {
23
23
24
24
impl header:: Header for AccessControlAllowOrigin {
25
25
#[ inline]
26
- fn header_name ( _ : Option < AccessControlAllowOrigin > ) -> & ' static str {
26
+ fn header_name ( ) -> & ' static str {
27
27
"Access-Control-Allow-Origin"
28
28
}
29
29
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ pub struct AccessControlMaxAge(pub u32);
14
14
15
15
impl header:: Header for AccessControlMaxAge {
16
16
#[ inline]
17
- fn header_name ( _ : Option < AccessControlMaxAge > ) -> & ' static str {
17
+ fn header_name ( ) -> & ' static str {
18
18
"Access-Control-Max-Age"
19
19
}
20
20
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ pub struct AccessControlRequestHeaders(pub Vec<String>);
14
14
15
15
impl header:: Header for AccessControlRequestHeaders {
16
16
#[ inline]
17
- fn header_name ( _ : Option < AccessControlRequestHeaders > ) -> & ' static str {
17
+ fn header_name ( ) -> & ' static str {
18
18
"Access-Control-Request-Headers"
19
19
}
20
20
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ pub struct AccessControlRequestMethod(pub Method);
15
15
16
16
impl header:: Header for AccessControlRequestMethod {
17
17
#[ inline]
18
- fn header_name ( _ : Option < AccessControlRequestMethod > ) -> & ' static str {
18
+ fn header_name ( ) -> & ' static str {
19
19
"Access-Control-Request-Method"
20
20
}
21
21
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ pub struct Allow(pub Vec<Method>);
12
12
deref ! ( Allow => Vec <Method >) ;
13
13
14
14
impl Header for Allow {
15
- fn header_name ( _ : Option < Allow > ) -> & ' static str {
15
+ fn header_name ( ) -> & ' static str {
16
16
"Allow"
17
17
}
18
18
You can’t perform that action at this time.
0 commit comments