Skip to content

Commit 4f4ff40

Browse files
committed
chore: iterator
1 parent 29e9630 commit 4f4ff40

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

rust/catalyst-types/src/problem_report.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
77
use std::sync::Arc;
88

9-
use orx_concurrent_vec::ConcurrentVec;
9+
use orx_concurrent_vec::{ConcurrentElement, ConcurrentVec};
1010

1111
/// The kind of problem being reported
1212
#[derive(Debug, Clone)]
@@ -161,8 +161,8 @@ impl ProblemReport {
161161

162162
/// Gets entries from the report.
163163
#[must_use]
164-
pub fn entries(&self) -> &ConcurrentVec<Entry> {
165-
&self.0.report.0
164+
pub fn entries(&self) -> impl Iterator<Item = &ConcurrentElement<Entry>> {
165+
self.0.report.0.iter()
166166
}
167167

168168
/// Gets context from the report.

0 commit comments

Comments
 (0)