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) {
3434struct Foo ;
3535
3636impl hyper:: header:: Header for Foo {
37- fn header_name ( _ : Option < Foo > ) -> & ' static str {
37+ fn header_name ( ) -> & ' static str {
3838 "x-foo"
3939 }
4040 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 {
5050struct Foo ;
5151
5252impl hyper:: header:: Header for Foo {
53- fn header_name ( _ : Option < Foo > ) -> & ' static str {
53+ fn header_name ( ) -> & ' static str {
5454 "x-foo"
5555 }
5656 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>>);
3131deref ! ( Accept => Vec <header:: QualityItem <mime:: Mime >>) ;
3232
3333impl header:: Header for Accept {
34- fn header_name ( _ : Option < Accept > ) -> & ' static str {
34+ fn header_name ( ) -> & ' static str {
3535 "Accept"
3636 }
3737
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ pub struct AccessControlAllowHeaders(pub Vec<String>);
1515
1616impl header:: Header for AccessControlAllowHeaders {
1717 #[ inline]
18- fn header_name ( _ : Option < AccessControlAllowHeaders > ) -> & ' static str {
18+ fn header_name ( ) -> & ' static str {
1919 "Access-Control-Allow-Headers"
2020 }
2121
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ pub struct AccessControlAllowMethods(pub Vec<method::Method>);
1616
1717impl header:: Header for AccessControlAllowMethods {
1818 #[ inline]
19- fn header_name ( _ : Option < AccessControlAllowMethods > ) -> & ' static str {
19+ fn header_name ( ) -> & ' static str {
2020 "Access-Control-Allow-Methods"
2121 }
2222
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ pub enum AccessControlAllowOrigin {
2323
2424impl header:: Header for AccessControlAllowOrigin {
2525 #[ inline]
26- fn header_name ( _ : Option < AccessControlAllowOrigin > ) -> & ' static str {
26+ fn header_name ( ) -> & ' static str {
2727 "Access-Control-Allow-Origin"
2828 }
2929
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ pub struct AccessControlMaxAge(pub u32);
1414
1515impl header:: Header for AccessControlMaxAge {
1616 #[ inline]
17- fn header_name ( _ : Option < AccessControlMaxAge > ) -> & ' static str {
17+ fn header_name ( ) -> & ' static str {
1818 "Access-Control-Max-Age"
1919 }
2020
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ pub struct AccessControlRequestHeaders(pub Vec<String>);
1414
1515impl header:: Header for AccessControlRequestHeaders {
1616 #[ inline]
17- fn header_name ( _ : Option < AccessControlRequestHeaders > ) -> & ' static str {
17+ fn header_name ( ) -> & ' static str {
1818 "Access-Control-Request-Headers"
1919 }
2020
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ pub struct AccessControlRequestMethod(pub Method);
1515
1616impl header:: Header for AccessControlRequestMethod {
1717 #[ inline]
18- fn header_name ( _ : Option < AccessControlRequestMethod > ) -> & ' static str {
18+ fn header_name ( ) -> & ' static str {
1919 "Access-Control-Request-Method"
2020 }
2121
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ pub struct Allow(pub Vec<Method>);
1212deref ! ( Allow => Vec <Method >) ;
1313
1414impl Header for Allow {
15- fn header_name ( _ : Option < Allow > ) -> & ' static str {
15+ fn header_name ( ) -> & ' static str {
1616 "Allow"
1717 }
1818
You can’t perform that action at this time.
0 commit comments