From 9cdb2568ca3c1fd5569b3073e757ccee0ec6c5a8 Mon Sep 17 00:00:00 2001 From: Lai Jiangshan Date: Thu, 26 Feb 2015 17:36:49 +0800 Subject: [PATCH] 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 --- src/libcore/iter.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/libcore/iter.rs b/src/libcore/iter.rs index b4ccf930437..c119bf799f5 100644 --- a/src/libcore/iter.rs +++ b/src/libcore/iter.rs @@ -1637,8 +1637,6 @@ impl Iterator for Filter where P: FnMut(&I::Item) -> bool for x in self.iter.by_ref() { if (self.predicate)(&x) { return Some(x); - } else { - continue } } None