mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-28 00:00:20 +02:00
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:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user