diff options
| author | Alexis Beingessner <a.beingessner@gmail.com> | 2014-10-30 21:25:08 -0400 |
|---|---|---|
| committer | Alexis Beingessner <a.beingessner@gmail.com> | 2014-11-02 18:58:11 -0500 |
| commit | 112c8a966fbdb52ff2a535dc8e6df3a8b3cb8fb2 (patch) | |
| tree | d6e5669ac5c4028c8776633dfbfac373852d94d6 /src/libtest/stats.rs | |
| parent | a294b35060e069007ee46e190a6f0a19fa3eaab8 (diff) | |
| download | rust-112c8a966fbdb52ff2a535dc8e6df3a8b3cb8fb2.tar.gz rust-112c8a966fbdb52ff2a535dc8e6df3a8b3cb8fb2.zip | |
refactor libcollections as part of collection reform
* Moves multi-collection files into their own directory, and splits them into seperate files
* Changes exports so that each collection has its own module
* Adds underscores to public modules and filenames to match standard naming conventions
(that is, treemap::{TreeMap, TreeSet} => tree_map::TreeMap, tree_set::TreeSet)
* Renames PriorityQueue to BinaryHeap
* Renames SmallIntMap to VecMap
* Miscellanious fallout fixes
[breaking-change]
Diffstat (limited to 'src/libtest/stats.rs')
| -rw-r--r-- | src/libtest/stats.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libtest/stats.rs b/src/libtest/stats.rs index 2cc694176de..8c184ccbe43 100644 --- a/src/libtest/stats.rs +++ b/src/libtest/stats.rs @@ -10,8 +10,8 @@ #![allow(missing_docs)] -use std::collections::hashmap; -use std::collections::hashmap::{Occupied, Vacant}; +use std::collections::hash_map; +use std::collections::hash_map::{Occupied, Vacant}; use std::fmt::Show; use std::hash::Hash; use std::io; @@ -440,8 +440,8 @@ pub fn write_boxplot<T: Float + Show + FromPrimitive>( /// Returns a HashMap with the number of occurrences of every element in the /// sequence that the iterator exposes. -pub fn freq_count<T: Iterator<U>, U: Eq+Hash>(mut iter: T) -> hashmap::HashMap<U, uint> { - let mut map: hashmap::HashMap<U,uint> = hashmap::HashMap::new(); +pub fn freq_count<T: Iterator<U>, U: Eq+Hash>(mut iter: T) -> hash_map::HashMap<U, uint> { + let mut map: hash_map::HashMap<U,uint> = hash_map::HashMap::new(); for elem in iter { match map.entry(elem) { Occupied(mut entry) => { *entry.get_mut() += 1; }, |
