Skip to content

Commit

Permalink
Use format!
Browse files Browse the repository at this point in the history
  • Loading branch information
jridgewell committed Mar 23, 2023
1 parent 86e5d56 commit 69d30b6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/next-swc/crates/next-core/src/router_source.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,10 @@ impl ContentSource for NextRouterContentSource {
headers: data.headers.clone(),
body: Body::from_stream(data.body.read().map(|chunk| {
chunk.map_err(|e| {
BodyError::new(
"error streaming proxied contents: ".to_string() + e.as_str(),
)
BodyError::new(format!(
"error streaming proxied contents: {}",
e.as_str()
))
})
})),
}
Expand Down

0 comments on commit 69d30b6

Please sign in to comment.