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 {
135135 use super :: * ;
136136
137137 #[ test]
138+ #[ allow( clippy:: eq_op) ]
138139 fn test_header_name_static_non_static ( ) {
139140 let static_header = HeaderName :: from_lowercase_str ( "hello" ) ;
140141 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 {
109109 }
110110}
111111
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 {
115115 RetryDirective :: Duration ( dur) => SystemTime :: now ( ) + dur,
116116 RetryDirective :: SystemTime ( at) => at,
117117 }
You can’t perform that action at this time.
0 commit comments