File tree 5 files changed +6
-6
lines changed
5 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -129,7 +129,7 @@ impl PartialEq<String> for HeaderName {
129
129
}
130
130
}
131
131
132
- impl < ' a > PartialEq < & String > for HeaderName {
132
+ impl PartialEq < & String > for HeaderName {
133
133
fn eq ( & self , other : & & String ) -> bool {
134
134
match HeaderName :: from_str ( other) {
135
135
Err ( _) => false ,
Original file line number Diff line number Diff line change @@ -125,7 +125,7 @@ impl PartialEq<String> for HeaderValue {
125
125
}
126
126
}
127
127
128
- impl < ' a > PartialEq < & String > for HeaderValue {
128
+ impl PartialEq < & String > for HeaderValue {
129
129
fn eq ( & self , other : & & String ) -> bool {
130
130
& & self . inner == other
131
131
}
Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ impl PartialEq<String> for HeaderValues {
123
123
}
124
124
}
125
125
126
- impl < ' a > PartialEq < & String > for HeaderValues {
126
+ impl PartialEq < & String > for HeaderValues {
127
127
fn eq ( & self , other : & & String ) -> bool {
128
128
self . inner . len ( ) == 1 && self . inner [ 0 ] == * * other
129
129
}
Original file line number Diff line number Diff line change @@ -172,14 +172,14 @@ mod test {
172
172
173
173
#[ test]
174
174
fn construct_shorthand_with_valid_status_code ( ) {
175
- let _res = Some ( ( ) ) . status ( 200 ) . unwrap ( ) ;
175
+ Some ( ( ) ) . status ( 200 ) . unwrap ( ) ;
176
176
}
177
177
178
178
#[ test]
179
179
#[ should_panic( expected = "Could not convert into a valid `StatusCode`" ) ]
180
180
fn construct_shorthand_with_invalid_status_code ( ) {
181
181
let res: Result < ( ) , std:: io:: Error > =
182
182
Err ( std:: io:: Error :: new ( std:: io:: ErrorKind :: Other , "oh no!" ) ) ;
183
- let _res = res. status ( 600 ) . unwrap ( ) ;
183
+ res. status ( 600 ) . unwrap ( ) ;
184
184
}
185
185
}
Original file line number Diff line number Diff line change @@ -725,7 +725,7 @@ mod test {
725
725
assert_eq ! ( StatusCode :: Accepted , status_code) ;
726
726
assert_eq ! (
727
727
Some ( 202 ) ,
728
- serde_json:: to_value( & StatusCode :: Accepted ) ?. as_u64( )
728
+ serde_json:: to_value( StatusCode :: Accepted ) ?. as_u64( )
729
729
) ;
730
730
Ok ( ( ) )
731
731
}
You can’t perform that action at this time.
0 commit comments