about summary refs log tree commit diff
path: root/src/libtest
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2015-01-06 15:29:18 -0800
committerAlex Crichton <alex@alexcrichton.com>2015-01-06 15:29:18 -0800
commite3f047c8c558624e276ca36c5854b9fdcd4e5965 (patch)
tree77e9e15864dd4466a9592fe6e26b6494e7e26c62 /src/libtest
parented61bd869300df56e52338ba1ee36038159ad196 (diff)
parent169fbed25179f223b730e1db5739e4a5a408ef31 (diff)
downloadrust-e3f047c8c558624e276ca36c5854b9fdcd4e5965.tar.gz
rust-e3f047c8c558624e276ca36c5854b9fdcd4e5965.zip
rollup merge of #20653: alexcrichton/entry-unstable
There's been some debate over the precise form that these APIs should take, and
they've undergone some changes recently, so these APIs are going to be left
unstable for now to be fleshed out during the next release cycle.
Diffstat (limited to 'src/libtest')
-rw-r--r--src/libtest/stats.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libtest/stats.rs b/src/libtest/stats.rs
index 3e7e379cd78..1abb52459e4 100644
--- a/src/libtest/stats.rs
+++ b/src/libtest/stats.rs
@@ -444,7 +444,7 @@ pub fn freq_count<T, U>(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) {
+        match map.entry(elem) {
             Occupied(mut entry) => { *entry.get_mut() += 1; },
             Vacant(entry) => { entry.insert(1); },
         }