mirror of
https://github.com/teloxide/teloxide.git
synced 2025-03-26 16:28:58 +01:00
Apply suggestions from code review
Co-authored-by: Waffle Maybe <waffle.lapkin@gmail.com>
This commit is contained in:
parent
27ef3409c2
commit
c7f38981a4
1 changed files with 9 additions and 5 deletions
|
@ -107,8 +107,12 @@ macro_rules! impl_api_error {
|
|||
(
|
||||
$( #[$meta:meta] )*
|
||||
$vis:vis enum $ident:ident {
|
||||
$($(#[$var_meta: meta])*
|
||||
$var_name: ident$(($var_inner: ty))? = $var_string: literal $(with $var_parser: block)?),* } ) => {
|
||||
$(
|
||||
$( #[$var_meta:meta] )*
|
||||
$var_name:ident $( ($var_inner:ty) )? = $var_string:literal $(with $var_parser: block)?
|
||||
),*
|
||||
}
|
||||
) => {
|
||||
|
||||
$(#[$meta])*
|
||||
#[derive(Error)]
|
||||
|
|
Loading…
Add table
Reference in a new issue