style: Avoid unnecessarily using Borrow.

This commit is contained in:
Emilio Cobos Álvarez 2017-09-04 13:23:56 +02:00
parent 2d1b387a4c
commit b81f6b3286
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C

View file

@ -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,
}
});
}