Skip to content

fix clippy warnings for manual implementations of is_multiple_of()#1573

Merged
alexhroom merged 1 commit intodimforge:mainfrom
aaronmrice:fix-clippy-warnings
Nov 23, 2025
Merged

fix clippy warnings for manual implementations of is_multiple_of()#1573
alexhroom merged 1 commit intodimforge:mainfrom
aaronmrice:fix-clippy-warnings

Conversation

@aaronmrice
Copy link
Contributor

cargo clippy warns on the common pattern a % b == 0, which returns true if a is a multiple of b. Rust unsigned integers have an is_multiple_of method, which makes the intent slightly clearer.

cargo clippy warns on the common pattern `a % b == 0`, which returns
true if `a` is a multiple of `b`. Rust unsigned integers have an
`is_multiple_of` method, which makes the intent slightly clearer.
@alexhroom
Copy link
Collaborator

looks good to me, thanks!

@alexhroom alexhroom merged commit e0623ee into dimforge:main Nov 23, 2025
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants