summaryrefslogtreecommitdiff
path: root/src/eval/array.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-08-21 16:38:51 +0200
committerLaurenz <laurmaedje@gmail.com>2021-08-21 17:30:21 +0200
commit0dd4ae0a7ac0c247078df492469ff20b8a90c886 (patch)
tree07a55343b9ccab3fe76b0f1b0de9d1be310d8b14 /src/eval/array.rs
parentf38eb10c2b54bd13ccef119454839f6a66448462 (diff)
Prune derives
Diffstat (limited to 'src/eval/array.rs')
-rw-r--r--src/eval/array.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/eval/array.rs b/src/eval/array.rs
index e554b11e..acf44ab2 100644
--- a/src/eval/array.rs
+++ b/src/eval/array.rs
@@ -137,18 +137,18 @@ impl AddAssign for Array {
}
}
-impl FromIterator<Value> for Array {
- fn from_iter<T: IntoIterator<Item = Value>>(iter: T) -> Self {
- Self(Rc::new(iter.into_iter().collect()))
- }
-}
-
impl Extend<Value> for Array {
fn extend<T: IntoIterator<Item = Value>>(&mut self, iter: T) {
Rc::make_mut(&mut self.0).extend(iter);
}
}
+impl FromIterator<Value> for Array {
+ fn from_iter<T: IntoIterator<Item = Value>>(iter: T) -> Self {
+ Self(Rc::new(iter.into_iter().collect()))
+ }
+}
+
impl IntoIterator for Array {
type Item = Value;
type IntoIter = std::vec::IntoIter<Value>;