From 05590e8a3cfcbf21d2d6d97935feb51be990b58f Mon Sep 17 00:00:00 2001 From: Niklas Elsbrock Date: Sat, 6 Aug 2022 20:55:50 +0200 Subject: [PATCH] add `must_use` attribute --- src/lib.rs | 1 + 1 file changed, 1 insertion(+) 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,