@@ -3,13 +3,12 @@ use murmur3::murmur3_32;
33use num_integer::Integer;
44use std::{
55 collections::BTreeMap,
6− io::Read,
76 iter::{once, repeat_n, zip},
87 rc::Rc,
98};
109
1110use crate::{
12− interpreter::{eval_gate, slam, InterpreterContext},
11+ interpreter::{slam, InterpreterContext},
1312 noun::{self, cell, Atom, Edge, Hair, Nail, Noun},
1413};
1514
@@ -336,7 +335,7 @@ static INTO: Jet = |_ctx, n| {
336335 .chain(once(c))
337336 .collect::<Vec<_>>()
338337 .iter()
339− .map(|x| x.clone()),
338+ .cloned(),
340339 )),
341340 }
342341};
@@ -433,7 +432,7 @@ static SCAG: Jet = |_ctx, n| {
433432 .take(a.as_u32().unwrap() as usize)
434433 .collect::<Vec<_>>()
435434 .iter()
436− .map(|x| x.clone()),
435+ .cloned(),
437436 ))
438437};
439438
@@ -444,8 +443,8 @@ static SKID: Jet = |ctx, n| {
444443 let (ys, ns): (Vec<_>, _) = slammed_n.iter().partition(|(l, _)| l.is_y());
445444
446445 Some(cell(
447− &Noun::list_refs(ys.iter().map(|(_, x)| x.clone())),
448− &Noun::list_refs(ns.iter().map(|(_, x)| x.clone())),
446+ &Noun::list_refs(ys.iter().map(|(_, x)| *x)),
447+ &Noun::list_refs(ns.iter().map(|(_, x)| *x)),
449448 ))
450449};
451450