@@ -528,10 +528,10 @@ mod tests {
528528
529529 fn set_params ( & mut self , params : DefaultParams ) {
530530 self . params = params;
531- if let Some ( multiplier_str) = self . params . get ( "multiplier" ) {
532- if let Ok ( multiplier) = multiplier_str. parse :: < i32 > ( ) {
533- self . multiplier = multiplier ;
534- }
531+ if let Some ( multiplier_str) = self . params . get ( "multiplier" )
532+ && let Ok ( multiplier) = multiplier_str. parse :: < i32 > ( )
533+ {
534+ self . multiplier = multiplier ;
535535 }
536536 }
537537
@@ -570,9 +570,7 @@ mod tests {
570570 Ok ( ( ) )
571571 }
572572
573- async fn exec ( & self , _prep_res : Self :: PrepResult ) -> Self :: ExecResult {
574- ( )
575- }
573+ async fn exec ( & self , _prep_res : Self :: PrepResult ) -> Self :: ExecResult { }
576574
577575 async fn post (
578576 & self ,
@@ -927,9 +925,7 @@ mod tests {
927925 }
928926 }
929927
930- async fn exec ( & self , _prep_res : Self :: PrepResult ) -> Self :: ExecResult {
931- ( )
932- }
928+ async fn exec ( & self , _prep_res : Self :: PrepResult ) -> Self :: ExecResult { }
933929
934930 async fn post (
935931 & self ,
@@ -975,9 +971,7 @@ mod tests {
975971 Ok ( ( ) )
976972 }
977973
978- async fn exec ( & self , _prep_res : Self :: PrepResult ) -> Self :: ExecResult {
979- ( )
980- }
974+ async fn exec ( & self , _prep_res : Self :: PrepResult ) -> Self :: ExecResult { }
981975
982976 async fn post (
983977 & self ,
@@ -1231,9 +1225,7 @@ mod tests {
12311225 }
12321226 }
12331227
1234- async fn exec ( & self , _prep_res : Self :: PrepResult ) -> Self :: ExecResult {
1235- ( )
1236- }
1228+ async fn exec ( & self , _prep_res : Self :: PrepResult ) -> Self :: ExecResult { }
12371229
12381230 async fn post (
12391231 & self ,
@@ -1278,9 +1270,7 @@ mod tests {
12781270 Err ( CanoError :: preparation ( "Always fails" ) )
12791271 }
12801272
1281- async fn exec ( & self , _prep_res : Self :: PrepResult ) -> Self :: ExecResult {
1282- ( )
1283- }
1273+ async fn exec ( & self , _prep_res : Self :: PrepResult ) -> Self :: ExecResult { }
12841274
12851275 async fn post (
12861276 & self ,
0 commit comments