From a76eb6aa0e5adb61f862521db48728bfcfb808e1 Mon Sep 17 00:00:00 2001 From: Maybe Waffle Date: Thu, 14 Apr 2022 14:40:28 +0400 Subject: [PATCH] Add 0.6->0.7 to migration guide --- MIGRATION_GUIDE.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/MIGRATION_GUIDE.md b/MIGRATION_GUIDE.md index df86b4c4..d83ce92f 100644 --- a/MIGRATION_GUIDE.md +++ b/MIGRATION_GUIDE.md @@ -1,6 +1,12 @@ This document describes breaking changes of `teloxide` crate, as well as the ways to update code. Note that the list of required changes is not fully exhaustive and it may lack something in rare cases. +## 0.6 -> 0.7 + +### teloxide + +In order to make `Dispatcher` implement `Send`, `DispatcherBuilder::{default_handler, error_handler}` now accept handlers that implements `Send + Sync`. If you used `!Send` or `!Sync` handlers here, you may need to change that. + ## 0.5 -> 0.6 ### core