Rename box_body to body (#533)

Probably would have been easier to merge this change directly into
`main` first and the backport it to `v0.3.x` but here we are :P

Fixes #528
This commit is contained in:
David Pedersen
2021-11-17 12:59:29 +00:00
committed by GitHub
parent 939995e80e
commit a317072467
16 changed files with 54 additions and 52 deletions
+3 -3
View File
@@ -2,7 +2,7 @@
use self::{future::RouterFuture, not_found::NotFound};
use crate::{
body::{box_body, Body, BoxBody},
body::{boxed, Body, BoxBody},
extract::{
connect_info::{Connected, IntoMakeServiceWithConnectInfo},
MatchedPath, OriginalUri,
@@ -274,7 +274,7 @@ where
NewResBody::Error: Into<BoxError>,
{
let layer = ServiceBuilder::new()
.layer(MapResponseBodyLayer::new(box_body))
.layer(MapResponseBodyLayer::new(boxed))
.layer(layer)
.into_inner();
@@ -315,7 +315,7 @@ where
NewResBody::Error: Into<BoxError>,
{
let layer = ServiceBuilder::new()
.layer(MapResponseBodyLayer::new(box_body))
.layer(MapResponseBodyLayer::new(boxed))
.layer(layer)
.into_inner();