Skip to content

Commit

Permalink
Explicit lifetime for iter
Browse files Browse the repository at this point in the history
  • Loading branch information
kimono-koans committed Mar 30, 2023
1 parent c8c90ee commit 08baf34
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/exec/roll_forward.rs
Original file line number Diff line number Diff line change
Expand Up @@ -230,9 +230,9 @@ impl RollForward {
}
}

fn ingest(
process_handle: &mut Child,
) -> HttmResult<Box<dyn Iterator<Item = (PathData, DiffType)> + '_>> {
fn ingest<'a>(
process_handle: &'a mut Child,
) -> HttmResult<Box<dyn Iterator<Item = (PathData, DiffType)> + 'a>> {
let stdout_buffer = if let Some(output) = process_handle.stdout.take() {
std::io::BufReader::new(output)
} else {
Expand Down

0 comments on commit 08baf34

Please sign in to comment.