Skip to content

Commit

Permalink
Fix lifetime on send()
Browse files Browse the repository at this point in the history
Should resolve #78
  • Loading branch information
AVee committed Jun 6, 2024
1 parent 6cba0f9 commit 019290d
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 019290d

Please sign in to comment.