From b81f6b32864e080c0fc6b019d8f2584924e8f1e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Mon, 4 Sep 2017 13:23:56 +0200 Subject: [PATCH] style: Avoid unnecessarily using Borrow. --- components/style/driver.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/components/style/driver.rs b/components/style/driver.rs index b2bbacfefcf..c6370d012e5 100644 --- a/components/style/driver.rs +++ b/components/style/driver.rs @@ -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, } }); }