mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-22 14:35:36 +01:00
Simplify an iterator
This commit is contained in:
parent
8baf8af8c1
commit
2fee7b8503
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue