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);