1 error: `if` chain can be rewritten with `match`
2 --> $DIR/comparison_chain.rs:14:5
6 LL | | } else if x < y {
11 = note: `-D clippy::comparison-chain` implied by `-D warnings`
12 = help: Consider rewriting the `if` chain to use `cmp` and `match`.
14 error: `if` chain can be rewritten with `match`
15 --> $DIR/comparison_chain.rs:27:5
19 LL | | } else if x < y {
26 = help: Consider rewriting the `if` chain to use `cmp` and `match`.
28 error: `if` chain can be rewritten with `match`
29 --> $DIR/comparison_chain.rs:35:5
33 LL | | } else if y > x {
40 = help: Consider rewriting the `if` chain to use `cmp` and `match`.
42 error: `if` chain can be rewritten with `match`
43 --> $DIR/comparison_chain.rs:43:5
47 LL | | } else if x < 1 {
49 LL | | } else if x == 1 {
54 = help: Consider rewriting the `if` chain to use `cmp` and `match`.
56 error: aborting due to 4 previous errors