File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/server/routes/webhooks Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -17,10 +17,10 @@ pub enum CommandParseError {
17
17
18
18
macro_rules! generate_parser {
19
19
( pub enum $enum: ident {
20
- $( $command: expr => $variant: ident( $var_struct: ident {
20
+ $( $command: pat => $variant: ident( $var_struct: ident {
21
21
$( $flag: ident: $type: ty = $name: expr, ) *
22
22
} ) ) *
23
- _ => $d_variant: ident( $d_var_struct: ident { $( $d_flag: ident: $d_type: ty = $d_name: expr, ) * } )
23
+ => $d_variant: ident( $d_var_struct: ident { $( $d_flag: ident: $d_type: ty = $d_name: expr, ) * } )
24
24
} ) => {
25
25
use crate :: prelude:: * ;
26
26
use std:: str :: FromStr ;
@@ -144,7 +144,7 @@ generate_parser!(pub enum Command {
144
144
145
145
"reload-acl" => ReloadACL ( ReloadACLArgs { } )
146
146
147
- _ => Edit ( EditArgs {
147
+ => Edit ( EditArgs {
148
148
name: Option <String > = "name" ,
149
149
start: Option <Toolchain > = "start" ,
150
150
end: Option <Toolchain > = "end" ,
@@ -173,7 +173,7 @@ mod tests {
173
173
arg3: Option <String > = "arg3" ,
174
174
} )
175
175
176
- _ => Baz ( BazArgs {
176
+ => Baz ( BazArgs {
177
177
arg4: Option <i32 > = "arg4" ,
178
178
} )
179
179
} ) ;
You can’t perform that action at this time.
0 commit comments