mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-23 16:21:33 +11:00
We know the location is correct here
This commit is contained in:
parent
4d4ca80004
commit
dc8589479e
|
@ -399,7 +399,11 @@ where
|
||||||
let hash = self.hash(key);
|
let hash = self.hash(key);
|
||||||
|
|
||||||
if let Some(location) = self.nodes.location(key, hash) {
|
if let Some(location) = self.nodes.location(key, hash) {
|
||||||
self.nodes.node_at_mut(location).value_mut()
|
Some(unsafe {
|
||||||
|
self.nodes
|
||||||
|
.node_at_unchecked_mut(location)
|
||||||
|
.value_mut_unchecked()
|
||||||
|
})
|
||||||
} else {
|
} else {
|
||||||
None
|
None
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue