Skip to content

Commit 3c83a82

Browse files
committed
Fix other clippy lints
1 parent d342c21 commit 3c83a82

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/headers/header_name.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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();

src/other/retry_after.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)