Skip to content

Commit 2b31c87

Browse files
authored
Fix lifetime of de::tests::generate_subslices
1 parent d16aa05 commit 2b31c87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/de.rs

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

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

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

0 commit comments

Comments
 (0)