Skip to content

Conversation

@aaronmrice
Copy link

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.
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.

1 participant