diff --git a/src/dispatching/dispatchers/filter.rs b/src/dispatching/dispatchers/filter.rs index 3495939b..7c993a1a 100644 --- a/src/dispatching/dispatchers/filter.rs +++ b/src/dispatching/dispatchers/filter.rs @@ -206,7 +206,10 @@ impl<'a, HandlerE> FilterDispatcher<'a, HandlerE> { self } - pub async fn dispatch(&mut self, update: Update) -> Result<(), HandlerE> { + pub async fn dispatch( + &mut self, + update: Update, + ) -> Result<(), HandlerE> { let Update { kind, id } = update; let res = match kind.clone() { diff --git a/src/errors.rs b/src/errors.rs index ab831175..1805bd98 100644 --- a/src/errors.rs +++ b/src/errors.rs @@ -1,5 +1,6 @@ use derive_more::From; use reqwest::StatusCode; +use serde::Deserialize; use thiserror::Error; //