From 8c0c0948408af88a34c1141b114524101a87b2e1 Mon Sep 17 00:00:00 2001 From: quininer Date: Thu, 14 Mar 2019 12:17:37 +0800 Subject: [PATCH] Fix lifetime for rustc 1.30 --- src/gz/bufread.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gz/bufread.rs b/src/gz/bufread.rs index c67912fb7..a6d1d416f 100644 --- a/src/gz/bufread.rs +++ b/src/gz/bufread.rs @@ -316,7 +316,7 @@ enum GzState { /// A small adapter which reads data originally from `buf` and then reads all /// further data from `reader`. This will also buffer all data read from /// `reader` into `buf` for reuse on a further call. -struct Buffer<'a, T> { +struct Buffer<'a, T: 'a> { buf: &'a mut Vec, buf_cur: usize, buf_max: usize,