mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-16 21:15:18 +03:00
Remove match check in send_map
This commit is contained in:
@@ -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(_) => {
|
||||
|
||||
Reference in New Issue
Block a user