From 1eef53655a9d702048479d2dcd9a73663800d7ff Mon Sep 17 00:00:00 2001 From: Rouven Spreckels Date: Sat, 13 Apr 2024 09:41:46 +0200 Subject: [PATCH] Adhere to lints. --- examples/co-spherical.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/examples/co-spherical.rs b/examples/co-spherical.rs index 6fd1e9a..bfe05bf 100644 --- a/examples/co-spherical.rs +++ b/examples/co-spherical.rs @@ -34,14 +34,14 @@ fn main() { .map(|point| point * outer_radius + center) .collect::>(); let mut inner_then_outer = VecDeque::new(); - inner_then_outer.extend(inner.iter().cloned()); - inner_then_outer.extend(outer.iter().cloned()); + inner_then_outer.extend(inner.iter().copied()); + inner_then_outer.extend(outer.iter().copied()); let mut outer_then_inner = VecDeque::new(); - outer_then_inner.extend(outer.iter().cloned()); - outer_then_inner.extend(inner.iter().cloned()); + outer_then_inner.extend(outer.iter().copied()); + outer_then_inner.extend(inner.iter().copied()); let mut random = Vec::new(); - random.extend(inner.iter().cloned()); - random.extend(outer.iter().cloned()); + random.extend(inner.iter().copied()); + random.extend(outer.iter().copied()); random.shuffle(&mut rng); let mut random = VecDeque::from(random);