From 03d25b7f02b456aeded052a1c4ce688e0d8e7491 Mon Sep 17 00:00:00 2001 From: Hirrolot Date: Fri, 7 Oct 2022 16:45:16 +0600 Subject: [PATCH] Apply a review suggestion Co-authored-by: Waffle Maybe Former-commit-id: d690709dfb585adab582fbff54eb7ffecc3975ba --- MIGRATION_GUIDE.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MIGRATION_GUIDE.md b/MIGRATION_GUIDE.md index 9860c54c..83ea0829 100644 --- a/MIGRATION_GUIDE.md +++ b/MIGRATION_GUIDE.md @@ -75,6 +75,8 @@ teloxide::repl(bot, |bot: Bot, msg: Message| async move { This is because REPLs now require the closure to return `RequestError` instead of a generic error type, so type inference works perfectly for a return value. If you use something other than `RequestError`, you can transfer your code to `teloxide::dispatching`, which still permits a generic error type. +### macros + `parse_with` now accepts a Rust _path_ to a custom parser function instead of a string: ```diff,rust