Skip to content

Commit 559474b

Browse files
style(pre-compute): apply formatting for readability
1 parent f1a9434 commit 559474b

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

src/compute/app_runner.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,13 @@ pub fn start() -> ExitMode {
101101
};
102102
let pre_compute_args = match PreComputeArgs::read_args() {
103103
Ok(pre_compute_args) => pre_compute_args,
104-
Err(_) => { return ExitMode::InitializationFailure; }
104+
Err(_) => {
105+
return ExitMode::InitializationFailure;
106+
}
105107
};
106108

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)
109111
}
110112

111113
#[cfg(test)]
@@ -166,7 +168,7 @@ mod pre_compute_start_with_app_tests {
166168
temp_env::with_vars(env_vars_to_set, || {
167169
temp_env::with_vars_unset(env_vars_to_unset, || {
168170
assert_eq!(
169-
start_with_app(&mock,CHAIN_TASK_ID),
171+
start_with_app(&mock, CHAIN_TASK_ID),
170172
ExitMode::UnreportedFailure,
171173
"Should return 2 if get_challenge fails due to missing signer address"
172174
);

src/compute/pre_compute_app.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,8 @@ mod tests {
576576
let output_path = temp_dir.path().to_str().unwrap();
577577

578578
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());
580581
let plain_dataset = "Some very useful data.".as_bytes().to_vec();
581582
let saved_dataset = app.save_plain_dataset_file(&plain_dataset);
582583

0 commit comments

Comments
 (0)