chore(tonic): Remove duplicated code (#1267)
This commit is contained in:
@@ -14,8 +14,6 @@ where
|
|||||||
body.map_err(crate::Status::map_error).boxed_unsync()
|
body.map_err(crate::Status::map_error).boxed_unsync()
|
||||||
}
|
}
|
||||||
|
|
||||||
// this also exists in `crate::codegen` but we need it here since `codegen` has
|
|
||||||
// `#[cfg(feature = "codegen")]`.
|
|
||||||
/// Create an empty `BoxBody`
|
/// Create an empty `BoxBody`
|
||||||
pub fn empty_body() -> BoxBody {
|
pub fn empty_body() -> BoxBody {
|
||||||
http_body::Empty::new()
|
http_body::Empty::new()
|
||||||
|
|||||||
@@ -23,8 +23,4 @@ pub mod http {
|
|||||||
pub use http::*;
|
pub use http::*;
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn empty_body() -> crate::body::BoxBody {
|
pub use crate::body::empty_body;
|
||||||
http_body::Empty::new()
|
|
||||||
.map_err(|err| match err {})
|
|
||||||
.boxed_unsync()
|
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user