mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
fix observer comparing and test
This commit is contained in:
parent
84ac9f384a
commit
3877e9162f
4 changed files with 2 additions and 14 deletions
|
@ -163,7 +163,7 @@ impl Performance {
|
|||
observer.set_entries(obs_entries);
|
||||
}
|
||||
let mut observers = self.observers.borrow_mut();
|
||||
match observers.iter().position(|o| &(*o.observer) == observer) {
|
||||
match observers.iter().position(|o| *o.observer == *observer) {
|
||||
// If the observer is already in the list, we only update the observed
|
||||
// entry types.
|
||||
Some(p) => observers[p].entry_types = entry_types,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue