diff options
| author | bors <bors@rust-lang.org> | 2013-06-27 15:01:58 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-06-27 15:01:58 -0700 |
| commit | 63afb8ccc8dd945e35fa43ca319aeaa5fba78134 (patch) | |
| tree | 4c0757e660bffe4cc557d8790fa6b359bc5542eb /src/libextra/priority_queue.rs | |
| parent | 4c86a0431b637edd23b91234765402bb41edcae8 (diff) | |
| parent | 366ca44cc8f79704f8781adb15e74d3c2a0e5572 (diff) | |
| download | rust-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.rs | 6 |
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 |
