Clippy
Signed-off-by: Jacob Kiers <code@kiers.eu>
This commit is contained in:
parent
3a2367ef28
commit
07fccb6b2a
@ -99,6 +99,6 @@ mod tests {
|
|||||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
];
|
];
|
||||||
let sni = get_sni(&BUF);
|
let sni = get_sni(&BUF);
|
||||||
assert!(sni[0] == "www.lirui.tech".to_string());
|
assert!(sni[0] == *"www.lirui.tech");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -37,7 +37,7 @@ impl UpstreamAddress {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn is_resolved(&self) -> bool {
|
fn is_resolved(&self) -> bool {
|
||||||
self.resolved_addresses.len() > 0
|
!self.resolved_addresses.is_empty()
|
||||||
}
|
}
|
||||||
|
|
||||||
fn time_remaining(&self) -> Duration {
|
fn time_remaining(&self) -> Duration {
|
||||||
|
Loading…
Reference in New Issue
Block a user