clippy: Remove explicit return statements.
This commit is contained in:
committed by
Dan Gohman
parent
c8a65a721c
commit
81d6731e76
@@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user