diff options
Diffstat (limited to 'components/layout/persistent_list.rs')
-rw-r--r-- | components/layout/persistent_list.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/layout/persistent_list.rs b/components/layout/persistent_list.rs index 16bbc319ea0..cc7c859680f 100644 --- a/components/layout/persistent_list.rs +++ b/components/layout/persistent_list.rs @@ -44,7 +44,7 @@ where pub fn prepend_elem(&self, value: T) -> PersistentList<T> { PersistentList { head: Some(Arc::new(PersistentListEntry { - value: value, + value, next: self.head.clone(), })), length: self.length + 1, @@ -56,7 +56,7 @@ where // This could clone (and would not need the lifetime if it did), but then it would incur // atomic operations on every call to `.next()`. Bad. PersistentListIterator { - entry: self.head.as_ref().map(|head| &**head), + entry: self.head.as_deref(), } } } |