Added Sync, Send, 'static bounds on Box<dyn Error>

This commit is contained in:
Dmytro Polunin 2020-07-08 13:16:25 +03:00 committed by GitHub
parent ab69b334a1
commit 2e6ca03d5c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 {