We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 674910e commit bbd3e9eCopy full SHA for bbd3e9e
libm-test/tests/z_extensive/run.rs
@@ -197,15 +197,15 @@ impl Progress {
197
198
fn update(&self, completed: u64, input: impl fmt::Debug) {
199
// Infrequently update the progress bar.
200
- if completed % 20_000 == 0 {
+ if completed.is_multiple_of(20_000) {
201
self.pb.set_position(completed);
202
}
203
204
- if completed % 500_000 == 0 {
+ if completed.is_multiple_of(500_000) {
205
self.pb.set_message(format!("input: {input:<24?}"));
206
207
208
- if !self.is_tty && completed % 5_000_000 == 0 {
+ if !self.is_tty && completed.is_multiple_of(5_000_000) {
209
let len = self.pb.length().unwrap_or_default();
210
eprintln!(
211
"[{elapsed:3?}s {percent:3.0}%] {name} \
0 commit comments