clippy: Remove explicit return statements.

This commit is contained in:
Bruce Mitchener
2018-09-23 14:27:00 +07:00
committed by Dan Gohman
parent c8a65a721c
commit 81d6731e76

View File

@@ -165,19 +165,18 @@ fn valid_valuedata(data: &ValueData) -> bool {
return false; return false;
} }
} }
return true; true
} }
impl<'a> Iterator for Values<'a> { impl<'a> Iterator for Values<'a> {
type Item = Value; type Item = Value;
fn next(&mut self) -> Option<Self::Item> { fn next(&mut self) -> Option<Self::Item> {
return self self.inner
.inner
.by_ref() .by_ref()
.filter(|kv| valid_valuedata(kv.1)) .filter(|kv| valid_valuedata(kv.1))
.next() .next()
.map(|kv| kv.0); .map(|kv| kv.0)
} }
} }