From bd5c284790936fd3c3a97575f58bf684313702ba Mon Sep 17 00:00:00 2001 From: George Hahn Date: Fri, 7 Jun 2024 02:08:54 -0600 Subject: [PATCH] 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. --- core/src/error.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/error.rs b/core/src/error.rs index a5273479..13491a39 100644 --- a/core/src/error.rs +++ b/core/src/error.rs @@ -321,7 +321,7 @@ impl From for Error { impl From for Error { fn from(err: hyper::Error) -> Self { - if err.is_parse() || err.is_parse_too_large() || err.is_parse_status() || err.is_user() { + if err.is_parse() || err.is_parse_status() || err.is_user() { return Self::new(ErrorKind::Internal, err); }