diff --git a/src/lib.rs b/src/lib.rs index ef4d960..892da64 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -258,7 +258,7 @@ impl OathSession { timestamp_sys: Option, ) -> Result { 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);