mirror of
https://github.com/teloxide/teloxide.git
synced 2025-03-19 21:49:00 +01:00
Added Sync, Send, 'static bounds on Box<dyn Error>
This commit is contained in:
parent
ab69b334a1
commit
2e6ca03d5c
1 changed files with 2 additions and 2 deletions
|
@ -216,13 +216,13 @@ pub enum ParseError {
|
||||||
/// Redirected from [`FromStr::from_str`].
|
/// Redirected from [`FromStr::from_str`].
|
||||||
///
|
///
|
||||||
/// [`FromStr::from_str`]: https://doc.rust-lang.org/std/str/trait.FromStr.html#tymethod.from_str
|
/// [`FromStr::from_str`]: https://doc.rust-lang.org/std/str/trait.FromStr.html#tymethod.from_str
|
||||||
IncorrectFormat(Box<dyn Error>),
|
IncorrectFormat(Box<dyn Error + Send + Sync + 'static>),
|
||||||
|
|
||||||
UnknownCommand(PrefixedBotCommand),
|
UnknownCommand(PrefixedBotCommand),
|
||||||
WrongBotName(BotName),
|
WrongBotName(BotName),
|
||||||
|
|
||||||
/// A custom error which you can return from your custom parser.
|
/// A custom error which you can return from your custom parser.
|
||||||
Custom(Box<dyn Error>),
|
Custom(Box<dyn Error + Send + Sync + 'static>),
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Display for ParseError {
|
impl Display for ParseError {
|
||||||
|
|
Loading…
Add table
Reference in a new issue