Use .is_multiple_of() in bootstrap
This makes the intent clear, and silences Clippy.
This commit is contained in:
parent
f13d785a26
commit
4b3f31df4f
1 changed files with 3 additions and 1 deletions
|
|
@ -202,7 +202,9 @@ impl<'a> Renderer<'a> {
|
|||
}
|
||||
|
||||
fn render_test_outcome_terse(&mut self, outcome: Outcome<'_>, test: &TestOutcome) {
|
||||
if self.terse_tests_in_line != 0 && self.terse_tests_in_line % TERSE_TESTS_PER_LINE == 0 {
|
||||
if self.terse_tests_in_line != 0
|
||||
&& self.terse_tests_in_line.is_multiple_of(TERSE_TESTS_PER_LINE)
|
||||
{
|
||||
if let Some(total) = self.tests_count {
|
||||
let total = total.to_string();
|
||||
let executed = format!("{:>width$}", self.executed_tests - 1, width = total.len());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue