Remove match check in send_map

This commit is contained in:
Tim Chevalier
2012-08-22 15:17:20 -07:00
parent 6f77fcbd07
commit 73ffc7e700
+4 -1
View File
@@ -258,8 +258,11 @@ impl<K,V: copy> &const LinearMap<K,V> {
fn find(k: &K) -> option<V> {
match self.bucket_for_key(self.buckets, k) {
FoundEntry(idx) => {
match check self.buckets[idx] {
match self.buckets[idx] {
some(bkt) => {some(copy bkt.value)}
// FIXME (#3148): Will be able to get rid of this when we
// redefine SearchResult
none => fail ~"LinearMap::find: internal logic error"
}
}
TableFull | FoundHole(_) => {