Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Zztrans committed Apr 4, 2024
1 parent 0f15be9 commit 5f21624
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion judger/src/option.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ pub struct JudgerOpt {
#[structopt(long, default_value = "oj-lab-problem-package")]
pub problem_package_bucket: String,
/// Where to store problem package
#[structopt(env = "PROBLEM_PACKAGE_PATH", default_value = "judger/workdirs/development/problem-package")]
#[structopt(
env = "PROBLEM_PACKAGE_PATH",
default_value = "judger/workdirs/development/problem-package"
)]
pub problem_package_dir: PathBuf,
}

Expand Down
2 changes: 1 addition & 1 deletion judger/src/worker/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ impl JudgeWorker {
Err(anyhow::anyhow!("Failed to new builder result: {:?}", e))
});
if new_builder_result.is_err() {
return new_builder_result.unwrap_err()
return new_builder_result.unwrap_err();
}
let builder = new_builder_result.expect("builder creater error");
log::debug!("Builder created: {:?}", builder);
Expand Down

0 comments on commit 5f21624

Please sign in to comment.