diff --git a/crates/teloxide/src/dispatching/handler_description.rs b/crates/teloxide/src/dispatching/handler_description.rs index 4db15942..eb49dda0 100644 --- a/crates/teloxide/src/dispatching/handler_description.rs +++ b/crates/teloxide/src/dispatching/handler_description.rs @@ -21,7 +21,7 @@ impl DpHandlerDescription { } pub(crate) fn allowed_updates(&self) -> Vec { - self.allowed.observed.iter().map(|Kind(x)| x).copied().collect() + self.allowed.observed.iter().map(|&Kind(x)| x).collect() } }