Skip to content

Commit

Permalink
Prefer ::from
Browse files Browse the repository at this point in the history
  • Loading branch information
aumetra committed May 20, 2024
1 parent 0e903ee commit df3ecc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opentelemetry-http/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ pub mod hyper {
{
async fn send(&self, request: Request<Vec<u8>>) -> Result<Response<Bytes>, HttpError> {
let (parts, body) = request.into_parts();
let mut request: Request<B> = Request::from_parts(parts, body.into());
let mut request = Request::from_parts(parts, B::from(body));
if let Some(ref authorization) = self.authorization {
request
.headers_mut()
Expand Down

0 comments on commit df3ecc5

Please sign in to comment.