1 error: this looks like you are swapping elements of `foo` manually
4 LL | / let temp = foo[0];
5 LL | | foo[0] = foo[1];
7 | |_________________^ help: try: `foo.swap(0, 1)`
9 = note: `-D clippy::manual-swap` implied by `-D warnings`
11 error: this looks like you are swapping elements of `foo` manually
14 LL | / let temp = foo[0];
15 LL | | foo[0] = foo[1];
17 | |_________________^ help: try: `foo.swap(0, 1)`
19 error: this looks like you are swapping elements of `foo` manually
22 LL | / let temp = foo[0];
23 LL | | foo[0] = foo[1];
25 | |_________________^ help: try: `foo.swap(0, 1)`
27 error: this looks like you are swapping `a` and `b` manually
34 | |_________^ help: try: `std::mem::swap(&mut a, &mut b)`
36 = note: or maybe you should use `std::mem::replace`?
38 error: this looks like you are swapping `c.0` and `a` manually
45 | |_________^ help: try: `std::mem::swap(&mut c.0, &mut a)`
47 = note: or maybe you should use `std::mem::replace`?
49 error: this looks like you are trying to swap `a` and `b`
54 | |_________^ help: try: `std::mem::swap(&mut a, &mut b)`
56 = note: `-D clippy::almost-swapped` implied by `-D warnings`
57 = note: or maybe you should use `std::mem::replace`?
59 error: this looks like you are trying to swap `c.0` and `a`
64 | |___________^ help: try: `std::mem::swap(&mut c.0, &mut a)`
66 = note: or maybe you should use `std::mem::replace`?
68 error: aborting due to 7 previous errors