We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 14ca050 + 8aa6906 commit 3a80fabCopy full SHA for 3a80fab
src/zip/mod.rs
@@ -934,14 +934,14 @@ macro_rules! map_impl {
934
pub fn all<F>(mut self, mut predicate: F) -> bool
935
where F: FnMut($($p::Item),*) -> bool
936
{
937
- self.apply_core(true, move |_, args| {
+ !self.apply_core((), move |_, args| {
938
let ($($p,)*) = args;
939
if predicate($($p),*) {
940
- FoldWhile::Continue(true)
+ FoldWhile::Continue(())
941
} else {
942
- FoldWhile::Done(false)
+ FoldWhile::Done(())
943
}
944
- }).into_inner()
+ }).is_done()
945
946
947
expand_if!(@bool [$notlast]
0 commit comments