Remove one last match check, in send_map

This commit is contained in:
Tim Chevalier 2012-08-24 21:08:33 -07:00
parent 0dad78e03d
commit c7a3d0eb58

View file

@ -295,8 +295,11 @@ mod linear {
fn find(&const self, k: &K) -> option<V> {
match self.bucket_for_key(self.buckets, k) {
FoundEntry(idx) => {
match check self.buckets[idx] {
some(bkt) => {some(copy bkt.value)}
// FIXME (#3148): Once we rewrite found_entry, this
// failure case won't be necessary
match self.buckets[idx] {
some(bkt) => {some(copy bkt.value)}
none => fail ~"LinearMap::find: internal logic error"
}
}
TableFull | FoundHole(_) => {