mirror of
https://github.com/teloxide/teloxide.git
synced 2025-01-08 19:33:53 +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`].
|
||||
///
|
||||
/// [`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),
|
||||
WrongBotName(BotName),
|
||||
|
||||
/// 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 {
|
||||
|
|
Loading…
Reference in a new issue