Skip to content

Commit bd5c284

Browse files
committed
Fix build error when hyper's server feature isn't enabled
hyper's `server` feature is not always enabled. The `hyper::Error::is_parse_too_large` function isn't included when `server` isn't enabled. Fortunately, it doesn't matter to us: `Error:is_parse` matches `parse_too_large` errors, so removing this check does not change behavior whatsoever.
1 parent e1113dd commit bd5c284

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

core/src/error.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ impl From<http::Error> for Error {
321321

322322
impl From<hyper::Error> for Error {
323323
fn from(err: hyper::Error) -> Self {
324-
if err.is_parse() || err.is_parse_too_large() || err.is_parse_status() || err.is_user() {
324+
if err.is_parse() || err.is_parse_status() || err.is_user() {
325325
return Self::new(ErrorKind::Internal, err);
326326
}
327327

0 commit comments

Comments
 (0)