1 error: this looks like you are swapping elements of `foo` manually
4 11 | let temp = foo[0];
5 | _____^ starting here...
6 12 | | foo[0] = foo[1];
8 | |_________________^ ...ending here
10 = note: #[deny(manual_swap)] implied by #[deny(clippy)]
11 note: lint level defined here
19 error: this looks like you are swapping elements of `foo` manually
22 23 | let temp = foo[0];
23 | _____^ starting here...
24 24 | | foo[0] = foo[1];
26 | |_________________^ ...ending here
28 = note: #[deny(manual_swap)] implied by #[deny(clippy)]
32 error: this looks like you are swapping elements of `foo` manually
35 35 | let temp = foo[0];
36 | _____^ starting here...
37 36 | | foo[0] = foo[1];
39 | |_________________^ ...ending here
41 = note: #[deny(manual_swap)] implied by #[deny(clippy)]
45 error: this looks like you are swapping `a` and `b` manually
49 | _______^ starting here...
52 | |_________^ ...ending here
54 = note: #[deny(manual_swap)] implied by #[deny(clippy)]
56 | ; std::mem::swap(&mut a, &mut b);
57 = note: or maybe you should use `std::mem::replace`?
59 error: this looks like you are swapping `c.0` and `a` manually
63 | _______^ starting here...
66 | |_________^ ...ending here
68 = note: #[deny(manual_swap)] implied by #[deny(clippy)]
70 | ; std::mem::swap(&mut c.0, &mut a);
71 = note: or maybe you should use `std::mem::replace`?
73 error: this looks like you are trying to swap `a` and `b`
77 | _____^ starting here...
79 | |_________^ ...ending here
81 = note: #[deny(almost_swapped)] implied by #[deny(clippy)]
82 note: lint level defined here
88 | std::mem::swap(&mut a, &mut b);
89 = note: or maybe you should use `std::mem::replace`?
91 error: this looks like you are trying to swap `c.0` and `a`
95 | _____^ starting here...
97 | |___________^ ...ending here
99 = note: #[deny(almost_swapped)] implied by #[deny(clippy)]
101 | std::mem::swap(&mut c.0, &mut a);
102 = note: or maybe you should use `std::mem::replace`?
104 error: aborting due to 7 previous errors