Skip to content

Commit acc3bfd

Browse files
adamreicholdbluss
authored andcommitted
Mark Zip as must_use as they are lazy similar to iterators.
1 parent 87506b8 commit acc3bfd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/zip/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,7 @@ trait ZippableTuple: Sized {
190190
/// assert_eq!(totals, totals2);
191191
/// ```
192192
#[derive(Debug, Clone)]
193+
#[must_use = "zipping producers is lazy and does nothing unless consumed"]
193194
pub struct Zip<Parts, D> {
194195
parts: Parts,
195196
dimension: D,

0 commit comments

Comments
 (0)