parent
25c2be0ff4
commit
35fc4a4291
5 changed files with 43 additions and 13 deletions
|
|
@ -330,7 +330,7 @@ fn uint_hash<V: copy>() -> hashmap<uint, V> {
|
|||
#[doc = "
|
||||
Convenience function for adding keys to a hashmap with nil type keys
|
||||
"]
|
||||
fn set_add<K>(set: set<K>, key: K) -> bool { ret set.insert(key, ()); }
|
||||
fn set_add<K: copy>(set: set<K>, key: K) -> bool { ret set.insert(key, ()); }
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue