File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 8e9567dad8289dab79c61438da9229409e07b735
2
+ refs/heads/master: 2b06105c2a9f188df1e24c10c3d28c8f869cd558
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: ec0258a381b88b5574e3f8ce72ae553ac3a574b7
5
5
refs/heads/try: 7c6c492fb2af9a85f21ff952942df3523b22fd17
Original file line number Diff line number Diff line change @@ -98,12 +98,18 @@ impl<T: TotalOrd> PriorityQueue<T> {
98
98
item
99
99
}
100
100
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
+
101
107
/// 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 }
103
109
104
110
/// Consume the PriorityQueue and return a vector in sorted
105
111
/// (ascending) order
106
- pub fn to_sorted_vec ( self ) -> Vec < T > {
112
+ pub fn into_sorted_vec ( self ) -> Vec < T > {
107
113
let mut q = self ;
108
114
let mut end = q. len ( ) ;
109
115
while end > 1 {
You can’t perform that action at this time.
0 commit comments