diff options
| author | Jorge Aparicio <japaricious@gmail.com> | 2015-01-31 09:17:50 -0500 |
|---|---|---|
| committer | Jorge Aparicio <japaricious@gmail.com> | 2015-02-02 13:40:18 -0500 |
| commit | 3484706c38272828efc50b2553578afc62230dbb (patch) | |
| tree | 21352439579e8da48a79323078e72425360c925b /src/libtest | |
| parent | fd702702ee90ddb47d207f8886818c7f91600713 (diff) | |
remove unused mut qualifiers
Diffstat (limited to 'src/libtest')
| -rw-r--r-- | src/libtest/lib.rs | 2 | ||||
| -rw-r--r-- | src/libtest/stats.rs | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/src/libtest/lib.rs b/src/libtest/lib.rs index 25377e3afa1..c5c84396e18 100644 --- a/src/libtest/lib.rs +++ b/src/libtest/lib.rs @@ -32,8 +32,6 @@ html_favicon_url = "http://www.rust-lang.org/favicon.ico", html_root_url = "http://doc.rust-lang.org/nightly/")] -#![cfg_attr(not(stage0), allow(unused_mut))] // NOTE: remove after stage0 snap - #![feature(asm, slicing_syntax)] #![feature(box_syntax)] #![feature(collections)] diff --git a/src/libtest/stats.rs b/src/libtest/stats.rs index 0ce115a0c1f..ebd86dbf61c 100644 --- a/src/libtest/stats.rs +++ b/src/libtest/stats.rs @@ -332,7 +332,7 @@ pub fn winsorize<T: Float + FromPrimitive>(samples: &mut [T], pct: T) { /// Returns a HashMap with the number of occurrences of every element in the /// sequence that the iterator exposes. -pub fn freq_count<T, U>(mut iter: T) -> hash_map::HashMap<U, uint> +pub fn freq_count<T, U>(iter: T) -> hash_map::HashMap<U, uint> where T: Iterator<Item=U>, U: Eq + Clone + Hash<Hasher> { let mut map: hash_map::HashMap<U,uint> = hash_map::HashMap::new(); |
