Skip to content

Commit ec5728e

Browse files
committed
---
yaml --- r: 114295 b: refs/heads/master c: 2b06105 h: refs/heads/master i: 114293: 7e4e6b8 114291: 35cf5c7 114287: 7f05315 v: v3
1 parent a9c3689 commit ec5728e

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 8e9567dad8289dab79c61438da9229409e07b735
2+
refs/heads/master: 2b06105c2a9f188df1e24c10c3d28c8f869cd558
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: ec0258a381b88b5574e3f8ce72ae553ac3a574b7
55
refs/heads/try: 7c6c492fb2af9a85f21ff952942df3523b22fd17

trunk/src/libcollections/priority_queue.rs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,12 +98,18 @@ impl<T: TotalOrd> PriorityQueue<T> {
9898
item
9999
}
100100

101+
#[deprecated="renamed to `into_vec`"]
102+
fn to_vec(self) -> Vec<T> { self.into_vec() }
103+
104+
#[deprecated="renamed to `into_sorted_vec`"]
105+
fn to_sorted_vec(self) -> Vec<T> { self.into_sorted_vec() }
106+
101107
/// Consume the PriorityQueue and return the underlying vector
102-
pub fn to_vec(self) -> Vec<T> { let PriorityQueue{data: v} = self; v }
108+
pub fn into_vec(self) -> Vec<T> { let PriorityQueue{data: v} = self; v }
103109

104110
/// Consume the PriorityQueue and return a vector in sorted
105111
/// (ascending) order
106-
pub fn to_sorted_vec(self) -> Vec<T> {
112+
pub fn into_sorted_vec(self) -> Vec<T> {
107113
let mut q = self;
108114
let mut end = q.len();
109115
while end > 1 {

0 commit comments

Comments
 (0)