Skip to content

Commit

Permalink
Mark Zip as must_use as they are lazy similar to iterators.
Browse files Browse the repository at this point in the history
  • Loading branch information
adamreichold authored and bluss committed Oct 15, 2021
1 parent 87506b8 commit acc3bfd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/zip/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ trait ZippableTuple: Sized {
/// assert_eq!(totals, totals2);
/// ```
#[derive(Debug, Clone)]
#[must_use = "zipping producers is lazy and does nothing unless consumed"]
pub struct Zip<Parts, D> {
parts: Parts,
dimension: D,
Expand Down

0 comments on commit acc3bfd

Please sign in to comment.