Skip to content

Commit c988600

Browse files
committed
auth: Reformat long lines in auth service
Pure formatting change with no behavioral impact. Wraps lines exceeding style guide limits.
1 parent 30c0c5a commit c988600

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

cli/src/services/auth.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,8 @@ pub async fn ensure_valid_token(
168168
return Ok(stored);
169169
}
170170

171-
let refreshed = refresh_access_token(client, api_base_url, client_id, &stored.refresh_token).await?;
171+
let refreshed =
172+
refresh_access_token(client, api_base_url, client_id, &stored.refresh_token).await?;
172173
let updated = save_tokens(&refreshed)?;
173174
Ok(updated)
174175
}
@@ -292,7 +293,9 @@ fn current_unix_timestamp_seconds() -> Result<u64, AuthError> {
292293
.duration_since(UNIX_EPOCH)
293294
.map(|duration| duration.as_secs())
294295
.map_err(|error| {
295-
AuthError::InvalidResponse(format!("system clock is invalid for token expiry checks: {error}"))
296+
AuthError::InvalidResponse(format!(
297+
"system clock is invalid for token expiry checks: {error}"
298+
))
296299
})
297300
}
298301

0 commit comments

Comments
 (0)