Skip to content

Commit

Permalink
Merge #86
Browse files Browse the repository at this point in the history
86: Fix a cosmetic problem on `WatchSubmissions` r=qryxip a=qryxip

bors r+


Co-authored-by: Ryo Yamashita <qryxip@gmail.com>
  • Loading branch information
bors[bot] and qryxip authored Aug 23, 2020
2 parents 1108d70 + f3c1e14 commit 8a2e8ac
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
6 changes: 6 additions & 0 deletions snowchains_core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## [Unreleased]

### Fixed

- Fixed a cosmetic problem on `WatchSubmissions`.

## [0.4.2] - 2020-08-20Z

### Changed
Expand Down
8 changes: 4 additions & 4 deletions snowchains_core/src/web/atcoder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -831,7 +831,7 @@ fn print_submissions(mut wtr: impl WriteColor, summaries: &[SubmissionSummary])
wtr.reset()?;
write!(
wtr,
" │ {:>8} │ {:>9} │",
" │ {:>8} │ {:>10} │",
summary.exec_time.as_deref().unwrap_or(""),
summary.memory.as_deref().unwrap_or(""),
)?;
Expand Down Expand Up @@ -876,7 +876,7 @@ fn watch_submissions(
let pb = mp.add(ProgressBar::new(0));

pb.set_style(
ProgressStyle::default_bar().template("{prefix}{msg:3.bold} │"),
ProgressStyle::default_bar().template("{prefix}{msg:3.bold} │"),
);

pb.set_prefix(&format!(
Expand Down Expand Up @@ -966,7 +966,7 @@ fn watch_submissions(

pb.set_style(ProgressStyle::default_bar().template(&format!(
"{{prefix}}{{msg:3{style}}} {{pos:>3{style}}}/\
{{len:>3{style}}} {{bar:14{style}}} │",
{{len:>3{style}}} {{bar:15{style}}} │",
style = style(verdict),
)));

Expand Down Expand Up @@ -1025,7 +1025,7 @@ fn watch_submissions(
"{{prefix}}{{msg:3{}}} │ {} │ {} │",
verdict.progress_style(),
align_right(exec_time, 8),
align_right(memory, 9),
align_right(memory, 10),
)));
pb.finish_with_message(&verdict.to_string());
};
Expand Down

0 comments on commit 8a2e8ac

Please sign in to comment.