diff options
| author | Tim Chevalier <chevalier@alum.wellesley.edu> | 2012-08-22 15:17:20 -0700 |
|---|---|---|
| committer | Tim Chevalier <chevalier@alum.wellesley.edu> | 2012-08-22 15:24:33 -0700 |
| commit | 73ffc7e7005142c5a2d898fcb2aa39018efe07fb (patch) | |
| tree | 590394c9a118265c3f36eab07949e7e68718b7ba /src | |
| parent | 6f77fcbd0792f01f2b4fe91db8eca79f07a4bee0 (diff) | |
| download | rust-73ffc7e7005142c5a2d898fcb2aa39018efe07fb.tar.gz rust-73ffc7e7005142c5a2d898fcb2aa39018efe07fb.zip | |
Remove match check in send_map
Diffstat (limited to 'src')
| -rw-r--r-- | src/libcore/send_map.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libcore/send_map.rs b/src/libcore/send_map.rs index ea440899fe7..6d5605a240f 100644 --- a/src/libcore/send_map.rs +++ b/src/libcore/send_map.rs @@ -258,8 +258,11 @@ mod linear { 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(_) => { |
