Skip to content

Commit 1223e0e

Browse files
committed
Apply clippy's suggestion for lint manual_is_multiple_of
1 parent e9dfc80 commit 1223e0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/config/validator.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ mod tests {
144144

145145
impl Validator for Odd {
146146
fn validate(&self) -> anyhow::Result<()> {
147-
if self.0 % 2 == 0 {
147+
if self.0.is_multiple_of(2) {
148148
Err(anyhow!("{} is not odd", self.0))
149149
} else {
150150
Ok(())

0 commit comments

Comments
 (0)