Skip to content

Commit bbd3e9e

Browse files
committed
apply suggestions for clippy::manual_is_multiple_of in libm-test
1 parent 674910e commit bbd3e9e

File tree

1 file changed

+3
-3
lines changed
  • libm-test/tests/z_extensive

1 file changed

+3
-3
lines changed

libm-test/tests/z_extensive/run.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -197,15 +197,15 @@ impl Progress {
197197

198198
fn update(&self, completed: u64, input: impl fmt::Debug) {
199199
// Infrequently update the progress bar.
200-
if completed % 20_000 == 0 {
200+
if completed.is_multiple_of(20_000) {
201201
self.pb.set_position(completed);
202202
}
203203

204-
if completed % 500_000 == 0 {
204+
if completed.is_multiple_of(500_000) {
205205
self.pb.set_message(format!("input: {input:<24?}"));
206206
}
207207

208-
if !self.is_tty && completed % 5_000_000 == 0 {
208+
if !self.is_tty && completed.is_multiple_of(5_000_000) {
209209
let len = self.pb.length().unwrap_or_default();
210210
eprintln!(
211211
"[{elapsed:3?}s {percent:3.0}%] {name} \

0 commit comments

Comments
 (0)