1 error: this looks like you are swapping elements of `foo` manually
4 11 | / let temp = foo[0];
5 12 | | foo[0] = foo[1];
7 | |_________________^ help: try `foo.swap(0, 1)`
9 = note: #[deny(manual_swap)] implied by #[deny(clippy)]
10 note: lint level defined here
16 error: this looks like you are swapping elements of `foo` manually
19 20 | / let temp = foo[0];
20 21 | | foo[0] = foo[1];
22 | |_________________^ help: try `foo.swap(0, 1)`
24 = note: #[deny(manual_swap)] implied by #[deny(clippy)]
26 error: this looks like you are swapping elements of `foo` manually
29 29 | / let temp = foo[0];
30 30 | | foo[0] = foo[1];
32 | |_________________^ help: try `foo.swap(0, 1)`
34 = note: #[deny(manual_swap)] implied by #[deny(clippy)]
36 error: this looks like you are swapping `a` and `b` manually
43 | |_________^ help: try `std::mem::swap(&mut a, &mut b)`
45 = note: #[deny(manual_swap)] implied by #[deny(clippy)]
46 = note: or maybe you should use `std::mem::replace`?
48 error: this looks like you are swapping `c.0` and `a` manually
55 | |_________^ help: try `std::mem::swap(&mut c.0, &mut a)`
57 = note: #[deny(manual_swap)] implied by #[deny(clippy)]
58 = note: or maybe you should use `std::mem::replace`?
60 error: this looks like you are trying to swap `a` and `b`
65 | |_________^ help: try `std::mem::swap(&mut a, &mut b)`
67 = note: #[deny(almost_swapped)] implied by #[deny(clippy)]
68 note: lint level defined here
73 = note: or maybe you should use `std::mem::replace`?
75 error: this looks like you are trying to swap `c.0` and `a`
80 | |___________^ help: try `std::mem::swap(&mut c.0, &mut a)`
82 = note: #[deny(almost_swapped)] implied by #[deny(clippy)]
83 = note: or maybe you should use `std::mem::replace`?
85 error: aborting due to 7 previous errors