Fix warnings: unnecessary mut

This commit is contained in:
adria0
2020-07-29 11:00:04 +02:00
committed by Artem Vorotnikov
parent cacbf256fe
commit c5aed5bab1
11 changed files with 68 additions and 68 deletions

View File

@@ -282,7 +282,7 @@ impl<T: InformantData> Informant<T> {
let elapsed = now.duration_since(*self.last_tick.read());
let (client_report, full_report) = {
let mut last_report = self.last_report.lock();
let last_report = self.last_report.lock();
let full_report = self.target.report();
let diffed = full_report.client_report.clone() - &*last_report;
(diffed, full_report)