File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -135,6 +135,7 @@ mod tests {
135
135
use super :: * ;
136
136
137
137
#[ test]
138
+ #[ allow( clippy:: eq_op) ]
138
139
fn test_header_name_static_non_static ( ) {
139
140
let static_header = HeaderName :: from_lowercase_str ( "hello" ) ;
140
141
let non_static_header = HeaderName :: from_str ( "hello" ) . unwrap ( ) ;
Original file line number Diff line number Diff line change @@ -109,9 +109,9 @@ impl RetryAfter {
109
109
}
110
110
}
111
111
112
- impl Into < SystemTime > for RetryAfter {
113
- fn into ( self ) -> SystemTime {
114
- match self . inner {
112
+ impl From < RetryAfter > for SystemTime {
113
+ fn from ( retry_after : RetryAfter ) -> Self {
114
+ match retry_after . inner {
115
115
RetryDirective :: Duration ( dur) => SystemTime :: now ( ) + dur,
116
116
RetryDirective :: SystemTime ( at) => at,
117
117
}
You can’t perform that action at this time.
0 commit comments