Skip to content

Commit

Permalink
Fix elided_named_lifetimes warning (#109)
Browse files Browse the repository at this point in the history
  • Loading branch information
jayvdb authored Sep 8, 2024
1 parent 12509a0 commit 312753d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/io.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1622,7 +1622,7 @@ pub trait AsyncBufReadExt: AsyncBufRead {
/// let n = reader.read_until(b'\n', &mut buf).await?;
/// # std::io::Result::Ok(()) });
/// ```
fn read_until<'a>(&'a mut self, byte: u8, buf: &'a mut Vec<u8>) -> ReadUntilFuture<'_, Self>
fn read_until<'a>(&'a mut self, byte: u8, buf: &'a mut Vec<u8>) -> ReadUntilFuture<'a, Self>
where
Self: Unpin,
{
Expand Down Expand Up @@ -1655,7 +1655,7 @@ pub trait AsyncBufReadExt: AsyncBufRead {
/// let n = reader.read_line(&mut line).await?;
/// # std::io::Result::Ok(()) });
/// ```
fn read_line<'a>(&'a mut self, buf: &'a mut String) -> ReadLineFuture<'_, Self>
fn read_line<'a>(&'a mut self, buf: &'a mut String) -> ReadLineFuture<'a, Self>
where
Self: Unpin,
{
Expand Down

0 comments on commit 312753d

Please sign in to comment.