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.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/eval/array.rs b/src/eval/array.rs
index f6adee6d..912aa3c0 100644
--- a/src/eval/array.rs
+++ b/src/eval/array.rs
@@ -70,7 +70,7 @@ impl Array {
/// Clear the array.
pub fn clear(&mut self) {
- if Rc::strong_count(&mut self.0) == 1 {
+ if Rc::strong_count(&self.0) == 1 {
Rc::make_mut(&mut self.0).clear();
} else {
*self = Self::new();