Skip to content

Commit 9a37416

Browse files
committed
arena: Fix fallout of removing get()
1 parent f3682b5 commit 9a37416

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libarena/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,11 @@ struct Chunk {
5454
}
5555
impl Chunk {
5656
fn capacity(&self) -> uint {
57-
self.data.deref().borrow().get().capacity()
57+
self.data.borrow().capacity()
5858
}
5959

6060
unsafe fn as_ptr(&self) -> *u8 {
61-
self.data.deref().borrow().get().as_ptr()
61+
self.data.borrow().as_ptr()
6262
}
6363
}
6464

0 commit comments

Comments
 (0)