about summary refs log tree commit diff
diff options
context:
space:
mode:
authorquaternic <57393910+quaternic@users.noreply.github.com>2025-06-29 06:53:07 +0300
committerTrevor Gross <t.gross35@gmail.com>2025-06-29 05:03:12 -0500
commit76b9fbf5b2641c77c1d6ae8b3d86ce087c99ab9e (patch)
tree180d8b77b042c586f531aab30f8b7bb5bb6ba2c9
parent962ff16101b66ea9937163de9bd9ae948aea9332 (diff)
downloadrust-76b9fbf5b2641c77c1d6ae8b3d86ce087c99ab9e.tar.gz
rust-76b9fbf5b2641c77c1d6ae8b3d86ce087c99ab9e.zip
apply suggestions for clippy::manual_is_multiple_of in libm-test
-rw-r--r--library/compiler-builtins/libm-test/tests/z_extensive/run.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/library/compiler-builtins/libm-test/tests/z_extensive/run.rs b/library/compiler-builtins/libm-test/tests/z_extensive/run.rs
index f2ba6a4a0e3..e04e00c6d74 100644
--- a/library/compiler-builtins/libm-test/tests/z_extensive/run.rs
+++ b/library/compiler-builtins/libm-test/tests/z_extensive/run.rs
@@ -197,15 +197,15 @@ impl Progress {
 
     fn update(&self, completed: u64, input: impl fmt::Debug) {
         // Infrequently update the progress bar.
-        if completed % 20_000 == 0 {
+        if completed.is_multiple_of(20_000) {
             self.pb.set_position(completed);
         }
 
-        if completed % 500_000 == 0 {
+        if completed.is_multiple_of(500_000) {
             self.pb.set_message(format!("input: {input:<24?}"));
         }
 
-        if !self.is_tty && completed % 5_000_000 == 0 {
+        if !self.is_tty && completed.is_multiple_of(5_000_000) {
             let len = self.pb.length().unwrap_or_default();
             eprintln!(
                 "[{elapsed:3?}s {percent:3.0}%] {name} \