mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-23 21:23:56 +00:00
12 lines
232 B
Rust
12 lines
232 B
Rust
|
#![deny(clippy::if_not_else)]
|
||
|
|
||
|
fn show_permissions(flags: u32) {
|
||
|
if flags & 0x0F00 != 0 {
|
||
|
println!("Has the 0x0F00 permission.");
|
||
|
} else {
|
||
|
println!("The 0x0F00 permission is missing.");
|
||
|
}
|
||
|
}
|
||
|
|
||
|
fn main() {}
|