Skip to content

Commit 2cc0a0e

Browse files
ericktgraydon
authored andcommitted
std: Remove copy from all the hashmap key type params
1 parent 01118be commit 2cc0a0e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libstd/map.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ mod chained {
262262
ret vec::to_mut(vec::from_elem(nchains, absent));
263263
}
264264

265-
fn mk<K: copy, V: copy>(hasher: hashfn<K>, eqer: eqfn<K>) -> t<K,V> {
265+
fn mk<K, V: copy>(hasher: hashfn<K>, eqer: eqfn<K>) -> t<K,V> {
266266
let initial_capacity: uint = 32u; // 2^5
267267
let slf: t<K, V> = @{mut count: 0u,
268268
mut chains: chains(initial_capacity),
@@ -282,7 +282,7 @@ Parameters:
282282
hasher - The hash function for key type K
283283
eqer - The equality function for key type K
284284
*/
285-
fn hashmap<K: const copy, V: copy>(hasher: hashfn<K>, eqer: eqfn<K>)
285+
fn hashmap<K: const, V: copy>(hasher: hashfn<K>, eqer: eqfn<K>)
286286
-> hashmap<K, V> {
287287
chained::mk(hasher, eqer)
288288
}

0 commit comments

Comments
 (0)