Skip to content

Commit 5a87f36

Browse files
committed
tests: Fix warnings from clippy::zero_prefixed_literal
1 parent 760dced commit 5a87f36

1 file changed

Lines changed: 17 additions & 14 deletions

File tree

store/postgres/src/vid_batcher.rs

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -435,20 +435,23 @@ mod tests {
435435

436436
// The schedule of how we move through the bounds above in batches,
437437
// with varying timings for each batch
438-
batcher.run(040, 075, 10, S010).await;
439-
batcher.run(076, 145, 20, S010).await;
440-
batcher.run(146, 240, 40, S200).await;
441-
batcher.run(241, 270, 20, S200).await;
442-
batcher.run(271, 281, 10, S200).await;
443-
batcher.run(282, 287, 05, S050).await;
444-
batcher.run(288, 298, 10, S050).await;
445-
batcher.run(299, 309, 20, S050).await;
446-
batcher.run(310, 325, 40, S100).await;
447-
batcher.run(326, 336, 40, S100).await;
448-
batcher.run(337, 347, 40, S100).await;
449-
batcher.run(348, 357, 40, S100).await;
450-
batcher.run(358, 359, 40, S010).await;
451-
assert!(batcher.finished());
438+
#[allow(clippy::zero_prefixed_literal)]
439+
{
440+
batcher.run(040, 075, 10, S010).await;
441+
batcher.run(076, 145, 20, S010).await;
442+
batcher.run(146, 240, 40, S200).await;
443+
batcher.run(241, 270, 20, S200).await;
444+
batcher.run(271, 281, 10, S200).await;
445+
batcher.run(282, 287, 05, S050).await;
446+
batcher.run(288, 298, 10, S050).await;
447+
batcher.run(299, 309, 20, S050).await;
448+
batcher.run(310, 325, 40, S100).await;
449+
batcher.run(326, 336, 40, S100).await;
450+
batcher.run(337, 347, 40, S100).await;
451+
batcher.run(348, 357, 40, S100).await;
452+
batcher.run(358, 359, 40, S010).await;
453+
assert!(batcher.finished());
454+
}
452455

453456
batcher.at(360, 359, 80);
454457
batcher.step(360, 359, S010).await;

0 commit comments

Comments
 (0)