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 true;
true
}
impl<'a> Iterator for Values<'a> {
type Item = Value;
fn next(&mut self) -> Option<Self::Item> {
return self
.inner
self.inner
.by_ref()
.filter(|kv| valid_valuedata(kv.1))
.next()
.map(|kv| kv.0);
.map(|kv| kv.0)
}
}