remove the redundant else branch

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:
Lai Jiangshan 2015-02-26 17:36:49 +08:00
parent 4db0b32467
commit 9cdb2568ca

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