-
| I'm trying to figure out how to make  A simple code snippet to demonstrate it: pub fn f() {
    if 100 > i32::MAX {}
}This generates error by default, but with  | 
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
| 
 I might just not get the use case here. As a workaround, I can suggest to run  | 
Beta Was this translation helpful? Give feedback.
-D warningsdoesn't really make sense withfix. This is because when you use--fixyou want that your code gets fixed andrustfixdoesn't care if it fixes warnings or errors.I might just not get the use case here. As a workaround, I can suggest to run
cargo clippy -- -Dwarningsafter runningcargo clippy --fix.