@@ -28,24 +28,32 @@ impl DecisionCommand {
2828 let mut toks = input. clone ( ) ;
2929
3030 match toks. peek_token ( ) ? {
31- Some ( Token :: Word ( "merge" ) ) => {
32- command_or_error ( input, & mut toks, Self {
31+ Some ( Token :: Word ( "merge" ) ) => command_or_error (
32+ input,
33+ & mut toks,
34+ Self {
3335 resolution : Resolution :: Merge ,
3436 reversibility : Reversibility :: Reversible ,
35- } )
36- }
37- Some ( Token :: Word ( "hold" ) ) => {
38- command_or_error ( input, & mut toks, Self {
37+ } ,
38+ ) ,
39+ Some ( Token :: Word ( "hold" ) ) => command_or_error (
40+ input,
41+ & mut toks,
42+ Self {
3943 resolution : Resolution :: Hold ,
4044 reversibility : Reversibility :: Reversible ,
41- } )
42- }
45+ } ,
46+ ) ,
4347 _ => Ok ( None ) ,
4448 }
4549 }
4650}
4751
48- fn command_or_error < ' a > ( input : & mut Tokenizer < ' a > , toks : & mut Tokenizer < ' a > , command : DecisionCommand ) -> Result < Option < DecisionCommand > , Error < ' a > > {
52+ fn command_or_error < ' a > (
53+ input : & mut Tokenizer < ' a > ,
54+ toks : & mut Tokenizer < ' a > ,
55+ command : DecisionCommand ,
56+ ) -> Result < Option < DecisionCommand > , Error < ' a > > {
4957 toks. next_token ( ) ?;
5058 if let Some ( Token :: Dot ) | Some ( Token :: EndOfLine ) = toks. peek_token ( ) ? {
5159 * input = toks. clone ( ) ;
@@ -70,7 +78,7 @@ impl fmt::Display for ParseError {
7078 }
7179}
7280
73- #[ derive( Serialize , Deserialize , Debug , Clone , ToSql , FromSql , Eq , PartialEq ) ]
81+ #[ derive( Serialize , Deserialize , Debug , Clone , Copy , ToSql , FromSql , Eq , PartialEq ) ]
7482#[ postgres( name = "reversibility" ) ]
7583pub enum Reversibility {
7684 #[ postgres( name = "reversible" ) ]
0 commit comments