diff --git a/src/dispatching/dialogue/storage/in_mem_storage.rs b/src/dispatching/dialogue/storage/in_mem_storage.rs index c01498ff..c7989c28 100644 --- a/src/dispatching/dialogue/storage/in_mem_storage.rs +++ b/src/dispatching/dialogue/storage/in_mem_storage.rs @@ -46,7 +46,7 @@ where .lock() .await .remove(&chat_id) - .map_or_else(|| Err(InMemStorageError::RowNotFound), |_| Ok(())) + .map_or(Err(InMemStorageError::RowNotFound), |_| Ok(())) }) }