mirror of
https://github.com/LordGrimmauld/yubi-oath-rs.git
synced 2025-03-04 05:44:40 +01:00
refactor: make clippy happy
This commit is contained in:
parent
60e7b72ef5
commit
c596cfbcd9
1 changed files with 1 additions and 1 deletions
|
@ -258,7 +258,7 @@ impl OathSession {
|
|||
timestamp_sys: Option<SystemTime>,
|
||||
) -> Result<RefreshableOathCredential, Error> {
|
||||
let timestamp = timestamp_sys.unwrap_or_else(SystemTime::now);
|
||||
let code = self.calculate_code(&cred, timestamp_sys)?;
|
||||
let code = self.calculate_code(cred, timestamp_sys)?;
|
||||
let mut refreshable_cred = RefreshableOathCredential::new(cred.to_owned(), self);
|
||||
refreshable_cred.force_update(Some(code), timestamp);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue