Rollup merge of #22833 - laijs:remove-redundant-else-branch, r=dotdash

The branch \"else { continue }\" is the last code inside a loop body,
it is just useless.

Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>
This commit is contained in:
Manish Goregaokar 2015-02-27 11:44:25 +05:30
commit 8c9fe23ff0

View file

@ -1637,8 +1637,6 @@ impl<I: Iterator, P> Iterator for Filter<I, P> where P: FnMut(&I::Item) -> bool
for x in self.iter.by_ref() {
if (self.predicate)(&x) {
return Some(x);
} else {
continue
}
}
None