Simplify an iterator

This commit is contained in:
Maybe Waffle 2023-02-03 16:44:28 +04:00
parent 8baf8af8c1
commit 2fee7b8503

View file

@ -21,7 +21,7 @@ impl DpHandlerDescription {
}
pub(crate) fn allowed_updates(&self) -> Vec<AllowedUpdate> {
self.allowed.observed.iter().map(|Kind(x)| x).copied().collect()
self.allowed.observed.iter().map(|&Kind(x)| x).collect()
}
}