Skip to content

Commit e65f382

Browse files
authored
Fix lifetimr
1 parent 2b31c87 commit e65f382

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/de.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,10 @@ mod tests {
471471

472472
/// Generate subslices, plus stuffing empty slices into the returned
473473
/// iterator.
474-
fn generate_subslices<'a>(mut bytes: &'a [u8], chunk_size: usize) -> impl Iterator<Item = &'a [u8]> {
474+
fn generate_subslices<'a>(
475+
mut bytes: &'a [u8],
476+
chunk_size: usize,
477+
) -> impl Iterator<Item = &'a [u8]> + 'a {
475478
assert_ne!(chunk_size, 0);
476479

477480
Gn::new_scoped(move |mut s| loop {

0 commit comments

Comments
 (0)