Skip to content

Commit

Permalink
Merge pull request #79 from AVee/fix_lifetime
Browse files Browse the repository at this point in the history
Fix lifetime on send()
  • Loading branch information
lulf committed Jun 8, 2024
2 parents 6cba0f9 + 019290d commit 18af435
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -282,10 +282,10 @@ where
///
/// The response is returned.
pub async fn send<'req, 'buf, B: RequestBody>(
&'req mut self,
&'conn mut self,
request: Request<'req, B>,
rx_buf: &'buf mut [u8],
) -> Result<Response<'req, 'buf, HttpConnection<'conn, T>>, Error> {
) -> Result<Response<'conn, 'buf, HttpConnection<'conn, T>>, Error> {
self.write_request(&request).await?;
self.flush().await?;
Response::read(self, request.method, rx_buf).await
Expand Down

0 comments on commit 18af435

Please sign in to comment.