Avoid cloning cache key
This commit is contained in:
parent
5f10d310f4
commit
a36c636199
@ -342,7 +342,7 @@ impl<O: ForestObligation> ObligationForest<O> {
|
||||
return Ok(());
|
||||
}
|
||||
|
||||
match self.active_cache.entry(cache_key.clone()) {
|
||||
match self.active_cache.entry(cache_key) {
|
||||
Entry::Occupied(o) => {
|
||||
let node = &mut self.nodes[*o.get()];
|
||||
if let Some(parent_index) = parent {
|
||||
@ -366,7 +366,7 @@ impl<O: ForestObligation> ObligationForest<O> {
|
||||
&& self
|
||||
.error_cache
|
||||
.get(&obligation_tree_id)
|
||||
.map(|errors| errors.contains(&cache_key))
|
||||
.map(|errors| errors.contains(v.key()))
|
||||
.unwrap_or(false);
|
||||
|
||||
if already_failed {
|
||||
|
Loading…
x
Reference in New Issue
Block a user