diff options
| author | Patrick Walton <pcwalton@mimiga.net> | 2013-07-02 12:47:32 -0700 |
|---|---|---|
| committer | Patrick Walton <pcwalton@mimiga.net> | 2013-07-17 14:57:51 -0700 |
| commit | 99b33f721954bc5290f9201c8f64003c294d0571 (patch) | |
| tree | 786c9bf75d54512d0a80f6975ad40516ab432c3a /src/libextra/priority_queue.rs | |
| parent | b4e674f6e662bc80f2e7a5a1a9834f2152f08d32 (diff) | |
| download | rust-99b33f721954bc5290f9201c8f64003c294d0571.tar.gz rust-99b33f721954bc5290f9201c8f64003c294d0571.zip | |
librustc: Remove all uses of "copy".
Diffstat (limited to 'src/libextra/priority_queue.rs')
| -rw-r--r-- | src/libextra/priority_queue.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libextra/priority_queue.rs b/src/libextra/priority_queue.rs index 58bf4ba9247..dc274dfb814 100644 --- a/src/libextra/priority_queue.rs +++ b/src/libextra/priority_queue.rs @@ -308,8 +308,8 @@ mod tests { } fn check_to_vec(data: ~[int]) { - let heap = PriorityQueue::from_vec(copy data); - assert_eq!(merge_sort((copy heap).to_vec(), |x, y| x.le(y)), + let heap = PriorityQueue::from_vec(data.clone()); + assert_eq!(merge_sort(heap.clone().to_vec(), |x, y| x.le(y)), merge_sort(data, |x, y| x.le(y))); assert_eq!(heap.to_sorted_vec(), merge_sort(data, |x, y| x.le(y))); } |
