about summary refs log tree commit diff
path: root/src/libextra/priority_queue.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2013-06-27 15:01:58 -0700
committerbors <bors@rust-lang.org>2013-06-27 15:01:58 -0700
commit63afb8ccc8dd945e35fa43ca319aeaa5fba78134 (patch)
tree4c0757e660bffe4cc557d8790fa6b359bc5542eb /src/libextra/priority_queue.rs
parent4c86a0431b637edd23b91234765402bb41edcae8 (diff)
parent366ca44cc8f79704f8781adb15e74d3c2a0e5572 (diff)
downloadrust-63afb8ccc8dd945e35fa43ca319aeaa5fba78134.tar.gz
rust-63afb8ccc8dd945e35fa43ca319aeaa5fba78134.zip
auto merge of #7430 : huonw/rust/vec-kill, r=thestinger
Diffstat (limited to 'src/libextra/priority_queue.rs')
-rw-r--r--src/libextra/priority_queue.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libextra/priority_queue.rs b/src/libextra/priority_queue.rs
index af891edf9e5..fbb4be0febb 100644
--- a/src/libextra/priority_queue.rs
+++ b/src/libextra/priority_queue.rs
@@ -52,12 +52,12 @@ impl<T:Ord> PriorityQueue<T> {
     }
 
     /// Returns the number of elements the queue can hold without reallocating
-    pub fn capacity(&self) -> uint { vec::capacity(&self.data) }
+    pub fn capacity(&self) -> uint { self.data.capacity() }
 
-    pub fn reserve(&mut self, n: uint) { vec::reserve(&mut self.data, n) }
+    pub fn reserve(&mut self, n: uint) { self.data.reserve(n) }
 
     pub fn reserve_at_least(&mut self, n: uint) {
-        vec::reserve_at_least(&mut self.data, n)
+        self.data.reserve_at_least(n)
     }
 
     /// Pop the greatest item from the queue - fails if empty