File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -287,9 +287,15 @@ pub async fn enqueue_shas(
287
287
288
288
// At this point, the queue should also contain the commit that we're mentioning below.
289
289
let other_artifact_count = artifacts_in_queue. saturating_sub ( 1 ) ;
290
+
291
+ let verb = if other_artifact_count == 1 {
292
+ "is"
293
+ } else {
294
+ "are"
295
+ } ;
290
296
let suffix = if other_artifact_count == 1 { "" } else { "s" } ;
291
297
let queue_msg = format ! (
292
- r#"There are currently {other_artifact_count} other artifact{suffix} in the [queue](https://perf.rust-lang.org/status.html).
298
+ r#"There {verb} currently {other_artifact_count} other artifact{suffix} in the [queue](https://perf.rust-lang.org/status.html).
293
299
It will probably take at least ~{:.2} hours until the benchmark run finishes."# ,
294
300
( expected_duration / 3600.0 )
295
301
) ;
You can’t perform that action at this time.
0 commit comments