Skip to content

Commit ae5a1a1

Browse files
committed
msrv: fix as_ref lifetime
1 parent 5352d27 commit ae5a1a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/iter.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ impl<'a> Bytes<'a> {
130130

131131
impl<'a> AsRef<[u8]> for Bytes<'a> {
132132
#[inline]
133-
fn as_ref(&self) -> &'a [u8] {
133+
fn as_ref(&self) -> &[u8] {
134134
unsafe { slice_from_ptr_range(self.cursor, self.end) }
135135
}
136136
}

0 commit comments

Comments
 (0)