@@ -30,7 +30,7 @@ use crate::{
3030
3131/// Initial setup for the test
3232async fn setup (
33- enforcer_bin_paths : EnforcerBinPaths ,
33+ enforcer_bin_paths : & EnforcerBinPaths ,
3434 res_tx : mpsc:: UnboundedSender < anyhow:: Result < ( ) > > ,
3535) -> anyhow:: Result < EnforcerPostSetup > {
3636 let enforcer_pre_setup =
@@ -59,10 +59,10 @@ async fn unknown_withdrawal_task(
5959 res_tx : mpsc:: UnboundedSender < anyhow:: Result < ( ) > > ,
6060) -> anyhow:: Result < ( ) > {
6161 let mut enforcer_post_setup =
62- setup ( bin_paths. others , res_tx. clone ( ) ) . await ?;
62+ setup ( & bin_paths. others , res_tx. clone ( ) ) . await ?;
6363 let mut sidechain_withdrawer = PostSetup :: setup (
6464 Init {
65- bitnames_app : bin_paths. bitnames . clone ( ) ,
65+ bitnames_app : bin_paths. bitnames ( ) ? . clone ( ) ,
6666 data_dir_suffix : Some ( "withdrawer" . to_owned ( ) ) ,
6767 } ,
6868 & enforcer_post_setup,
@@ -93,7 +93,7 @@ async fn unknown_withdrawal_task(
9393 // New sidechain node, starting from scratch
9494 let mut sidechain_successor = PostSetup :: setup (
9595 Init {
96- bitnames_app : bin_paths. bitnames ,
96+ bitnames_app : bin_paths. bitnames ( ) ? . clone ( ) ,
9797 data_dir_suffix : Some ( "successor" . to_owned ( ) ) ,
9898 } ,
9999 & enforcer_post_setup,
0 commit comments