Skip to content

Commit 214251e

Browse files
Add missing comment
1 parent 8b534de commit 214251e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libdd-profiling/src/internal/observation/observations.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,8 @@ impl Drop for AggregatedObservations {
196196
}
197197
}
198198

199+
/// This iterator does only exist to make the drop work as in: consume the rest of the iterator on
200+
/// drop to clean up and not leak memory
199201
struct AggregatedObservationsIter {
200202
iter: std::collections::hash_map::IntoIter<Sample, TrimmedObservation>,
201203
obs_len: ObservationLength,

0 commit comments

Comments
 (0)