mirror of
https://github.com/teloxide/teloxide.git
synced 2025-03-23 07:09:34 +01:00
Apply a review suggestion
Co-authored-by: Waffle Maybe <waffle.lapkin@gmail.com>
Former-commit-id: d690709dfb
This commit is contained in:
parent
b52502c2df
commit
03d25b7f02
1 changed files with 2 additions and 0 deletions
|
@ -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.
|
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:
|
`parse_with` now accepts a Rust _path_ to a custom parser function instead of a string:
|
||||||
|
|
||||||
```diff,rust
|
```diff,rust
|
||||||
|
|
Loading…
Add table
Reference in a new issue