Skip to content

Commit 2c60deb

Browse files
committed
Use BodyExt trait
1 parent 1db6eaf commit 2c60deb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tonic/src/body.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
//! HTTP specific body utilities.
22
3+
use http_body_util::BodyExt;
4+
35
/// A type erased HTTP body used for tonic services.
46
pub type BoxBody = http_body_util::combinators::UnsyncBoxBody<bytes::Bytes, crate::Status>;
57

@@ -18,3 +20,4 @@ pub fn empty_body() -> BoxBody {
1820
.map_err(|err| match err {})
1921
.boxed_unsync()
2022
}
23+

0 commit comments

Comments
 (0)