Skip to content

Commit 8c7b13b

Browse files
tottotoseanmonstar
authored andcommitted
refactor(client): use addition assignment operator
1 parent e0b7732 commit 8c7b13b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/client/legacy/pool.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -797,7 +797,7 @@ impl<T: Poolable + 'static, K: Key> Future for IdleTask<T, K> {
797797
// Set this task to run after the next deadline
798798
// If the poll missed the deadline by a lot, set the deadline
799799
// from the current time instead
800-
*this.deadline = *this.deadline + *this.duration;
800+
*this.deadline += *this.duration;
801801
if *this.deadline < Instant::now() - Duration::from_millis(5) {
802802
*this.deadline = Instant::now() + *this.duration;
803803
}

0 commit comments

Comments
 (0)