Skip to content

Commit 4ca9cf8

Browse files
committed
fix build
1 parent 2fb9673 commit 4ca9cf8

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/core/arena.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,11 @@ impl<T> Rc<T> {
392392
}
393393
}
394394

395+
#[inline]
396+
pub fn ptr_eq(this: &Rc<T>, other: &Rc<T>) -> bool {
397+
this.ptr.as_ptr() == other.ptr.as_ptr()
398+
}
399+
395400
#[inline(always)]
396401
pub fn get(&self) -> &T {
397402
&self.inner().value

src/core/list.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ impl<T> RcNode<T> {
537537
if let Some(memory) = memory {
538538
match arena::Rc::new(data, memory) {
539539
Ok(r) => Self::Arena(r),
540-
Err(()) => unimplemented!(), // TODO: fall back to std
540+
Err(arena::InsertError(data)) => Self::Std(Rc::new(data)),
541541
}
542542
} else {
543543
Self::Std(Rc::new(data))

0 commit comments

Comments
 (0)