Skip to content

Commit 7c21e33

Browse files
committed
to_sorted_vec -> into_sorted_vec
1 parent 80e3d8a commit 7c21e33

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/aggregate.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ pub fn reduce(rx: Receiver<weather::Report>) -> Vec<weather::Station> {
66
while let Ok(stats) = rx.recv() {
77
merge_records(&mut hmap, stats);
88
}
9-
to_sorted_vec(hmap)
9+
into_sorted_vec(hmap)
1010
}
1111

1212
fn merge_records(dst: &mut weather::Report, src: weather::Report) {
@@ -17,7 +17,7 @@ fn merge_records(dst: &mut weather::Report, src: weather::Report) {
1717
}
1818
}
1919

20-
fn to_sorted_vec(hmap: weather::Report) -> Vec<weather::Station> {
20+
fn into_sorted_vec(hmap: weather::Report) -> Vec<weather::Station> {
2121
let mut v = hmap.into_vec();
2222
v.sort_unstable();
2323
v

0 commit comments

Comments
 (0)