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