mirror of
https://github.com/librespot-org/librespot.git
synced 2024-11-08 16:45:43 +00:00
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.
This commit is contained in:
parent
e1113dd5e2
commit
bd5c284790
1 changed files with 1 additions and 1 deletions
|
@ -321,7 +321,7 @@ impl From<http::Error> for Error {
|
||||||
|
|
||||||
impl From<hyper::Error> for Error {
|
impl From<hyper::Error> for Error {
|
||||||
fn from(err: hyper::Error) -> Self {
|
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);
|
return Self::new(ErrorKind::Internal, err);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue