Use AddAssign impl

This commit is contained in:
est31
2021-11-09 23:45:17 +01:00
parent d32993afe8
commit 9afb241af5
2 changed files with 2 additions and 2 deletions

View File

@@ -34,7 +34,7 @@ where
let rv = f();
let duration = start.elapsed();
let mut accu = accu.lock();
*accu = *accu + duration;
*accu += duration;
rv
}