]> git.lizzy.rs Git - rust.git/blobdiff - library/test/src/bench.rs
Fix some clippy issues
[rust.git] / library / test / src / bench.rs
index a03cf9dd791156077329232a1be4e3e36ee7a96b..10546de17641ddb17ece871e5dd66b843912c874 100644 (file)
@@ -159,7 +159,7 @@ pub fn iter<T, F>(inner: &mut F) -> stats::Summary
             return summ5;
         }
 
-        total_run = total_run + loop_run;
+        total_run += loop_run;
         // Longest we ever run for is 3s.
         if total_run > Duration::from_secs(3) {
             return summ5;