File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -101,11 +101,13 @@ pub fn start() -> ExitMode {
101
101
} ;
102
102
let pre_compute_args = match PreComputeArgs :: read_args ( ) {
103
103
Ok ( pre_compute_args) => pre_compute_args,
104
- Err ( _) => { return ExitMode :: InitializationFailure ; }
104
+ Err ( _) => {
105
+ return ExitMode :: InitializationFailure ;
106
+ }
105
107
} ;
106
108
107
- let pre_compute_app = PreComputeApp :: new ( chain_task_id. clone ( ) , pre_compute_args) ;
108
- start_with_app ( & pre_compute_app, & chain_task_id)
109
+ let pre_compute_app = PreComputeApp :: new ( chain_task_id. clone ( ) , pre_compute_args) ;
110
+ start_with_app ( & pre_compute_app, & chain_task_id)
109
111
}
110
112
111
113
#[ cfg( test) ]
@@ -166,7 +168,7 @@ mod pre_compute_start_with_app_tests {
166
168
temp_env:: with_vars ( env_vars_to_set, || {
167
169
temp_env:: with_vars_unset ( env_vars_to_unset, || {
168
170
assert_eq ! (
169
- start_with_app( & mock, CHAIN_TASK_ID ) ,
171
+ start_with_app( & mock, CHAIN_TASK_ID ) ,
170
172
ExitMode :: UnreportedFailure ,
171
173
"Should return 2 if get_challenge fails due to missing signer address"
172
174
) ;
Original file line number Diff line number Diff line change @@ -576,7 +576,8 @@ mod tests {
576
576
let output_path = temp_dir. path ( ) . to_str ( ) . unwrap ( ) ;
577
577
578
578
let mut app = get_pre_compute_app ( CHAIN_TASK_ID , vec ! [ ] , output_path) ;
579
- app. pre_compute_args . plain_dataset_filename = Some ( "/some-folder-123/not-found" . to_string ( ) ) ;
579
+ app. pre_compute_args . plain_dataset_filename =
580
+ Some ( "/some-folder-123/not-found" . to_string ( ) ) ;
580
581
let plain_dataset = "Some very useful data." . as_bytes ( ) . to_vec ( ) ;
581
582
let saved_dataset = app. save_plain_dataset_file ( & plain_dataset) ;
582
583
You can’t perform that action at this time.
0 commit comments