diff --git a/src/lib.rs b/src/lib.rs index 0623399..0279dd7 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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 { iter: I, acc: B,