refactor(http1): updated Encoder/Decoder match with the matches macro (#2368)
This commit is contained in:
		| @@ -202,12 +202,9 @@ impl Accept for AddrIncoming { | ||||
| /// The timeout is useful to handle resource exhaustion errors like ENFILE | ||||
| /// and EMFILE. Otherwise, could enter into tight loop. | ||||
| fn is_connection_error(e: &io::Error) -> bool { | ||||
|     match e.kind() { | ||||
|         io::ErrorKind::ConnectionRefused | ||||
|     matches!(e.kind(), io::ErrorKind::ConnectionRefused | ||||
|         | io::ErrorKind::ConnectionAborted | ||||
|         | io::ErrorKind::ConnectionReset => true, | ||||
|         _ => false, | ||||
|     } | ||||
|         | io::ErrorKind::ConnectionReset) | ||||
| } | ||||
|  | ||||
| impl fmt::Debug for AddrIncoming { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user