fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: `if` chain can be rewritten with `match` 2 --> $DIR/comparison_chain.rs:14:5 3 | 4LL | / if x > y { 5LL | | 6LL | | a() 7LL | | } else if x < y { 8LL | | b() 9LL | | } 10 | |_____^ 11 | 12 = help: consider rewriting the `if` chain to use `cmp` and `match` 13 = note: `-D clippy::comparison-chain` implied by `-D warnings` 14 = help: to override `-D warnings` add `#[allow(clippy::comparison_chain)]` 15 16error: `if` chain can be rewritten with `match` 17 --> $DIR/comparison_chain.rs:28:5 18 | 19LL | / if x > y { 20LL | | 21LL | | a() 22LL | | } else if x < y { 23... | 24LL | | c() 25LL | | } 26 | |_____^ 27 | 28 = help: consider rewriting the `if` chain to use `cmp` and `match` 29 30error: `if` chain can be rewritten with `match` 31 --> $DIR/comparison_chain.rs:37:5 32 | 33LL | / if x > y { 34LL | | 35LL | | a() 36LL | | } else if y > x { 37... | 38LL | | c() 39LL | | } 40 | |_____^ 41 | 42 = help: consider rewriting the `if` chain to use `cmp` and `match` 43 44error: `if` chain can be rewritten with `match` 45 --> $DIR/comparison_chain.rs:46:5 46 | 47LL | / if x > 1 { 48LL | | 49LL | | a() 50LL | | } else if x < 1 { 51... | 52LL | | c() 53LL | | } 54 | |_____^ 55 | 56 = help: consider rewriting the `if` chain to use `cmp` and `match` 57 58error: `if` chain can be rewritten with `match` 59 --> $DIR/comparison_chain.rs:121:5 60 | 61LL | / if x > y { 62LL | | 63LL | | a() 64LL | | } else if x < y { 65LL | | b() 66LL | | } 67 | |_____^ 68 | 69 = help: consider rewriting the `if` chain to use `cmp` and `match` 70 71error: `if` chain can be rewritten with `match` 72 --> $DIR/comparison_chain.rs:128:5 73 | 74LL | / if x > y { 75LL | | 76LL | | a() 77LL | | } else if x < y { 78... | 79LL | | c() 80LL | | } 81 | |_____^ 82 | 83 = help: consider rewriting the `if` chain to use `cmp` and `match` 84 85error: `if` chain can be rewritten with `match` 86 --> $DIR/comparison_chain.rs:137:5 87 | 88LL | / if x > y { 89LL | | 90LL | | a() 91LL | | } else if y > x { 92... | 93LL | | c() 94LL | | } 95 | |_____^ 96 | 97 = help: consider rewriting the `if` chain to use `cmp` and `match` 98 99error: aborting due to 7 previous errors 100