mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
style: Avoid unnecessarily using Borrow.
This commit is contained in:
parent
2d1b387a4c
commit
b81f6b3286
1 changed files with 1 additions and 2 deletions
|
@ -13,7 +13,6 @@ use parallel;
|
|||
use parallel::{DispatchMode, WORK_UNIT_MAX};
|
||||
use rayon;
|
||||
use scoped_tls::ScopedTLS;
|
||||
use std::borrow::Borrow;
|
||||
use std::collections::VecDeque;
|
||||
use std::mem;
|
||||
use time;
|
||||
|
@ -120,7 +119,7 @@ where
|
|||
aggregate = slots.iter().fold(aggregate, |acc, t| {
|
||||
match *t.borrow() {
|
||||
None => acc,
|
||||
Some(ref cx) => &cx.borrow().statistics + &acc,
|
||||
Some(ref cx) => &cx.statistics + &acc,
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue