Removes redundant mut in rpc

This commit is contained in:
Dmitry Kashitsyn
2017-10-15 20:11:07 +07:00
parent b49baed696
commit dab40e832c
2 changed files with 2 additions and 2 deletions

View File

@@ -176,7 +176,7 @@ impl<T: TimeProvider> AuthCodes<T> {
}
// look for code
for mut code in &mut self.codes {
for code in &mut self.codes {
if &as_token(&code.code) == hash {
code.last_used_at = Some(time::Duration::from_secs(now));
return true;