refactor: make clippy happy
Some checks are pending
CI / Check (push) Waiting to run
CI / Test Suite (push) Waiting to run
CI / Rustfmt (push) Waiting to run
CI / Clippy (push) Waiting to run
CI / cargo-deny (push) Waiting to run

This commit is contained in:
Grimmauld 2025-02-15 19:10:46 +01:00
parent 60e7b72ef5
commit c596cfbcd9
No known key found for this signature in database

View file

@ -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);