mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 16:54:01 +00:00
coverage: Prefer Iterator::copied
This commit is contained in:
parent
dca6b5eead
commit
e5b43c33d8
@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user