about summary refs log tree commit diff
path: root/src/libarena
diff options
context:
space:
mode:
authorEduard Burtescu <edy.burt@gmail.com>2014-02-28 00:02:27 +0200
committerEduard Burtescu <edy.burt@gmail.com>2014-03-13 14:21:45 +0200
commitcdc18b96d6aa38c22b4fa9715c974ef986ad250d (patch)
tree9a0fae0250cb35e67a2f966ed6e17eb0a7afaef1 /src/libarena
parent12b2607572d6233a1d4b4f7592573e49b505771e (diff)
downloadrust-cdc18b96d6aa38c22b4fa9715c974ef986ad250d.tar.gz
rust-cdc18b96d6aa38c22b4fa9715c974ef986ad250d.zip
Remove Rc's borrow method to avoid conflicts with RefCell's borrow in Rc<RefCell<T>>.
Diffstat (limited to 'src/libarena')
-rw-r--r--src/libarena/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libarena/lib.rs b/src/libarena/lib.rs
index 1fc88eda37b..2ccb8e9c4c2 100644
--- a/src/libarena/lib.rs
+++ b/src/libarena/lib.rs
@@ -51,11 +51,11 @@ struct Chunk {
 }
 impl Chunk {
     fn capacity(&self) -> uint {
-        self.data.borrow().borrow().get().capacity()
+        self.data.deref().borrow().get().capacity()
     }
 
     unsafe fn as_ptr(&self) -> *u8 {
-        self.data.borrow().borrow().get().as_ptr()
+        self.data.deref().borrow().get().as_ptr()
     }
 }