mirror of
https://github.com/nelsbrock/iter_accumulate.git
synced 2026-08-14 22:16:48 +02:00
add must_use attribute
This commit is contained in:
@@ -7,6 +7,7 @@
|
|||||||
/// closure.
|
/// closure.
|
||||||
///
|
///
|
||||||
/// See [`IterAccumulate::accumulate()`] for more information.
|
/// See [`IterAccumulate::accumulate()`] for more information.
|
||||||
|
#[must_use = "iterator adaptors are lazy and do nothing unless consumed"]
|
||||||
pub struct Accumulate<I, B, F> {
|
pub struct Accumulate<I, B, F> {
|
||||||
iter: I,
|
iter: I,
|
||||||
acc: B,
|
acc: B,
|
||||||
|
|||||||
Reference in New Issue
Block a user