summaryrefslogtreecommitdiff
path: root/src/eval/array.rs
diff options
context:
space:
mode:
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>;