coverage: Prefer Iterator::copied

This commit is contained in:
Zalathar 2024-06-16 15:51:00 +10:00
parent dca6b5eead
commit e5b43c33d8

View File

@ -216,7 +216,7 @@ impl graph::StartNode for CoverageGraph {
impl graph::Successors for CoverageGraph {
#[inline]
fn successors(&self, node: Self::Node) -> impl Iterator<Item = Self::Node> {
self.successors[node].iter().cloned()
self.successors[node].iter().copied()
}
}