1 error: this looks like you are swapping `bar.a` and `bar.b` manually
4 LL | / let temp = bar.a;
7 | |________________^ help: try: `std::mem::swap(&mut bar.a, &mut bar.b)`
9 = note: `-D clippy::manual-swap` implied by `-D warnings`
10 = note: or maybe you should use `std::mem::replace`?
12 error: this looks like you are swapping elements of `foo` manually
15 LL | / let temp = foo[0];
16 LL | | foo[0] = foo[1];
18 | |_________________^ help: try: `foo.swap(0, 1)`
20 error: this looks like you are swapping elements of `foo` manually
23 LL | / let temp = foo[0];
24 LL | | foo[0] = foo[1];
26 | |_________________^ help: try: `foo.swap(0, 1)`
28 error: this looks like you are swapping elements of `foo` manually
31 LL | / let temp = foo[0];
32 LL | | foo[0] = foo[1];
34 | |_________________^ help: try: `foo.swap(0, 1)`
36 error: this looks like you are swapping `a` and `b` manually
42 | |___________^ help: try: `std::mem::swap(&mut a, &mut b)`
44 error: this looks like you are swapping `bar.a` and `bar.b` manually
47 LL | / bar.a ^= bar.b;
48 LL | | bar.b ^= bar.a;
49 LL | | bar.a ^= bar.b;
50 | |___________________^ help: try: `std::mem::swap(&mut bar.a, &mut bar.b)`
52 error: this looks like you are swapping elements of `foo` manually
55 LL | / foo[0] ^= foo[1];
56 LL | | foo[1] ^= foo[0];
57 LL | | foo[0] ^= foo[1];
58 | |_____________________^ help: try: `foo.swap(0, 1)`
60 error: this looks like you are swapping `foo[0][1]` and `bar[1][0]` manually
61 --> $DIR/swap.rs:120:5
63 LL | / let temp = foo[0][1];
64 LL | | foo[0][1] = bar[1][0];
65 LL | | bar[1][0] = temp;
66 | |____________________^ help: try: `std::mem::swap(&mut foo[0][1], &mut bar[1][0])`
68 = note: or maybe you should use `std::mem::replace`?
70 error: this looks like you are swapping `a` and `b` manually
71 --> $DIR/swap.rs:134:7
77 | |_________^ help: try: `std::mem::swap(&mut a, &mut b)`
79 = note: or maybe you should use `std::mem::replace`?
81 error: this looks like you are swapping `c.0` and `a` manually
82 --> $DIR/swap.rs:143:7
88 | |_________^ help: try: `std::mem::swap(&mut c.0, &mut a)`
90 = note: or maybe you should use `std::mem::replace`?
92 error: this looks like you are trying to swap `a` and `b`
93 --> $DIR/swap.rs:131:5
97 | |_________^ help: try: `std::mem::swap(&mut a, &mut b)`
99 = note: `-D clippy::almost-swapped` implied by `-D warnings`
100 = note: or maybe you should use `std::mem::replace`?
102 error: this looks like you are trying to swap `c.0` and `a`
103 --> $DIR/swap.rs:140:5
107 | |___________^ help: try: `std::mem::swap(&mut c.0, &mut a)`
109 = note: or maybe you should use `std::mem::replace`?
111 error: aborting due to 12 previous errors