Skip to content

Commit 73ffc7e

Browse files
committed
Remove match check in send_map
1 parent 6f77fcb commit 73ffc7e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/libcore/send_map.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,8 +258,11 @@ mod linear {
258258
fn find(k: &K) -> option<V> {
259259
match self.bucket_for_key(self.buckets, k) {
260260
FoundEntry(idx) => {
261-
match check self.buckets[idx] {
261+
match self.buckets[idx] {
262262
some(bkt) => {some(copy bkt.value)}
263+
// FIXME (#3148): Will be able to get rid of this when we
264+
// redefine SearchResult
265+
none => fail ~"LinearMap::find: internal logic error"
263266
}
264267
}
265268
TableFull | FoundHole(_) => {

0 commit comments

Comments
 (0)