Skip to content

Commit 5507965

Browse files
committed
fix(numfmt): satisfy clippy manual_is_multiple_of
1 parent 3a9b359 commit 5507965

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/uu/numfmt/src/format.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ fn apply_grouping(num: &str, grouping_sep: &str, decimal_sep: char) -> String {
213213
out.push(sign);
214214
}
215215
for (i, ch) in digits_chars.iter().enumerate() {
216-
if i > 0 && (len - i) % 3 == 0 {
216+
if i > 0 && (len - i).is_multiple_of(3) {
217217
out.push_str(grouping_sep);
218218
}
219219
out.push(*ch);

0 commit comments

Comments
 (0)