mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-14 17:07:17 +00:00
38d4ac7cea
Discussion previously happened in https://github.com/rust-lang/rust/pull/43498
7 lines
128 B
Rust
7 lines
128 B
Rust
#![warn(clippy::modulo_one)]
|
|
#![allow(clippy::no_effect, clippy::unnecessary_operation)]
|
|
|
|
fn main() {
|
|
10 % 1;
|
|
10 % 2;
|
|
}
|