Skip to content

Commit

Permalink
rename var
Browse files Browse the repository at this point in the history
  • Loading branch information
JRoper18 committed Aug 7, 2023
1 parent 8403aee commit aec291c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dump.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ fn get_stack_traces_with_config(pid: Pid, config: &Config) -> Result<Vec<StackTr
let mut process = PythonSpy::new(pid, config)?;
let mut traces = process.get_stack_traces()?;
if config.subprocesses {
let sub_results: Result<Vec<Vec<StackTrace>>, Error> = process
let unflattened: Result<Vec<Vec<StackTrace>>, Error> = process
.process
.child_processes()
.expect("failed to get subprocesses")
Expand All @@ -27,7 +27,7 @@ fn get_stack_traces_with_config(pid: Pid, config: &Config) -> Result<Vec<StackTr
}
})
.collect();
let mut subtraces = sub_results?.into_iter().flatten().collect();
let mut subtraces = unflattened?.into_iter().flatten().collect();
traces.append(&mut subtraces);
}

Expand Down

0 comments on commit aec291c

Please sign in to comment.