Skip to content

Commit c54ba96

Browse files
Fix: Address unrelated clippy warning (double_ended_iterator_last)
Use `.next_back()` instead of `.last()` on a `DoubleEndedIterator` in `tests/metrics_publishing.rs` to satisfy the `clippy::double_ended_iterator_last` lint, which was likely surfaced by CI flags (`-D warnings`) or a toolchain update.
1 parent 9331ef1 commit c54ba96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/metrics_publishing.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -625,7 +625,7 @@ where
625625
.data_points
626626
.iter()
627627
.map(|data_point| data_point.value)
628-
.last()
628+
.next_back()
629629
.unwrap()
630630
);
631631

0 commit comments

Comments
 (0)