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: `if` chain can be rewritten with `match`
57 --> $DIR/comparison_chain.rs:117:5
61 LL | | } else if x < y {
66 = help: consider rewriting the `if` chain to use `cmp` and `match`
68 error: `if` chain can be rewritten with `match`
69 --> $DIR/comparison_chain.rs:123:5
73 LL | | } else if x < y {
80 = help: consider rewriting the `if` chain to use `cmp` and `match`
82 error: `if` chain can be rewritten with `match`
83 --> $DIR/comparison_chain.rs:131:5
87 LL | | } else if y > x {
94 = help: consider rewriting the `if` chain to use `cmp` and `match`
96 error: aborting due to 7 previous errors