Skip to content

Commit 87fdc26

Browse files
committed
add move variant of gen_iter
1 parent 6d1e088 commit 87fdc26

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,9 @@ where
9292
macro_rules! gen_iter {
9393
($block: block) => {
9494
$crate::GenIter(|| $block)
95+
};
96+
(move $block: block) => {
97+
$crate::GenIter(move || $block)
9598
}
9699
}
97100

0 commit comments

Comments
 (0)