Skip to content

Commit

Permalink
Merge pull request rust-lang#189 from quininer/fix-old
Browse files Browse the repository at this point in the history
Fix lifetime for rustc 1.30
  • Loading branch information
alexcrichton authored Mar 14, 2019
2 parents 68f285a + 8c0c094 commit d90189d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gz/bufread.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<u8>,
buf_cur: usize,
buf_max: usize,
Expand Down

0 comments on commit d90189d

Please sign in to comment.