Skip to content

Commit

Permalink
style: 🎨 cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Eason0729 committed Jan 12, 2024
1 parent dccabdf commit 772f59e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion judger/src/init/logger.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ pub fn init() {
let default_panic = std::panic::take_hook();
std::panic::set_hook(Box::new(move |info| {
default_panic(info);
log::error!("Panic at {}",info.location().map(|x|x.to_string()).unwrap_or_default());
log::error!(
"Panic at {}",
info.location().map(|x| x.to_string()).unwrap_or_default()
);
std::process::exit(1);
}));
}
4 changes: 2 additions & 2 deletions judger/src/langs/artifact.rs
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ impl<'a> CompiledArtifact<'a> {
time: u64,
memory: u64,
) -> Result<TaskResult, Error> {
log::debug!("Exit status: {}",self.process.status);
log::debug!("Exit status: {}", self.process.status);
debug_assert!(self.process.succeed());
let spec = self.spec;
let mut limit = spec.judge_limit.clone().apply_platform();
Expand Down Expand Up @@ -228,7 +228,7 @@ impl<'a> CompiledArtifact<'a> {
time: u64,
memory: u64,
) -> Result<ExecResult, Error> {
log::debug!("Exit status: {}",self.process.status);
log::debug!("Exit status: {}", self.process.status);
debug_assert!(self.process.succeed());
let spec = self.spec;
let mut limit = spec.judge_limit.clone().apply_platform();
Expand Down

0 comments on commit 772f59e

Please sign in to comment.