Skip to content

Commit 8c0c094

Browse files
committed
Fix lifetime for rustc 1.30
1 parent 68f285a commit 8c0c094

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gz/bufread.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ enum GzState {
316316
/// A small adapter which reads data originally from `buf` and then reads all
317317
/// further data from `reader`. This will also buffer all data read from
318318
/// `reader` into `buf` for reuse on a further call.
319-
struct Buffer<'a, T> {
319+
struct Buffer<'a, T: 'a> {
320320
buf: &'a mut Vec<u8>,
321321
buf_cur: usize,
322322
buf_max: usize,

0 commit comments

Comments
 (0)