@@ -528,11 +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 > ( ) {
531+ if let Some ( multiplier_str) = self . params . get ( "multiplier" )
532+ && let Ok ( multiplier) = multiplier_str. parse :: < i32 > ( ) {
533533 self . multiplier = multiplier;
534534 }
535- }
536535 }
537536
538537 async fn prep ( & self , _store : & MemoryStore ) -> Result < Self :: PrepResult , CanoError > {
@@ -571,7 +570,6 @@ mod tests {
571570 }
572571
573572 async fn exec ( & self , _prep_res : Self :: PrepResult ) -> Self :: ExecResult {
574- ( )
575573 }
576574
577575 async fn post (
@@ -928,7 +926,6 @@ mod tests {
928926 }
929927
930928 async fn exec ( & self , _prep_res : Self :: PrepResult ) -> Self :: ExecResult {
931- ( )
932929 }
933930
934931 async fn post (
@@ -976,7 +973,6 @@ mod tests {
976973 }
977974
978975 async fn exec ( & self , _prep_res : Self :: PrepResult ) -> Self :: ExecResult {
979- ( )
980976 }
981977
982978 async fn post (
@@ -1232,7 +1228,6 @@ mod tests {
12321228 }
12331229
12341230 async fn exec ( & self , _prep_res : Self :: PrepResult ) -> Self :: ExecResult {
1235- ( )
12361231 }
12371232
12381233 async fn post (
@@ -1279,7 +1274,6 @@ mod tests {
12791274 }
12801275
12811276 async fn exec ( & self , _prep_res : Self :: PrepResult ) -> Self :: ExecResult {
1282- ( )
12831277 }
12841278
12851279 async fn post (
0 commit comments