refactor(http): directly use Error from import
This commit is contained in:
parent
1dc6519d0c
commit
5e57678d5c
@ -49,13 +49,13 @@ fn status_code_response(
|
|||||||
response
|
response
|
||||||
}
|
}
|
||||||
|
|
||||||
fn full<T: Into<Bytes>>(chunk: T) -> BoxBody<Bytes, hyper::Error> {
|
fn full<T: Into<Bytes>>(chunk: T) -> BoxBody<Bytes, Error> {
|
||||||
Full::new(chunk.into())
|
Full::new(chunk.into())
|
||||||
.map_err(|never| match never {})
|
.map_err(|never| match never {})
|
||||||
.boxed()
|
.boxed()
|
||||||
}
|
}
|
||||||
|
|
||||||
fn empty() -> BoxBody<Bytes, hyper::Error> {
|
fn empty() -> BoxBody<Bytes, Error> {
|
||||||
Empty::<Bytes>::new()
|
Empty::<Bytes>::new()
|
||||||
.map_err(|never| match never {})
|
.map_err(|never| match never {})
|
||||||
.boxed()
|
.boxed()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user