mirror of https://github.com/http-rs/tide-rustls
satisfy clippy
This commit is contained in:
parent
afc6fc15ff
commit
a68017473e
|
@ -166,12 +166,11 @@ impl<State: Clone + Send + Sync + 'static> Listener<State> for TlsListener {
|
|||
}
|
||||
|
||||
fn is_transient_error(e: &io::Error) -> bool {
|
||||
match e.kind() {
|
||||
io::ErrorKind::ConnectionRefused
|
||||
| io::ErrorKind::ConnectionAborted
|
||||
| io::ErrorKind::ConnectionReset => true,
|
||||
_ => false,
|
||||
}
|
||||
use io::ErrorKind::*;
|
||||
matches!(
|
||||
e.kind(),
|
||||
ConnectionRefused | ConnectionAborted | ConnectionReset
|
||||
)
|
||||
}
|
||||
|
||||
impl Display for TlsListener {
|
||||
|
|
Loading…
Reference in New Issue