Skip to content

Commit 0fefd77

Browse files
committed
style: fix formatting issues in login_screen.rs
- Fix trailing whitespace on empty lines - Reformat tracing::trace! macro call to proper multi-line format Fixes CI Format check failures.
1 parent e0adfe2 commit 0fefd77

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

src/cortex-tui/src/runner/login_screen.rs

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ impl LoginScreen {
223223
return Ok(result);
224224
}
225225
}
226-
226+
227227
// Handle async messages from token polling
228228
msg = async {
229229
if let Some(ref mut rx) = self.async_rx {
@@ -237,7 +237,7 @@ impl LoginScreen {
237237
self.handle_async_message(msg);
238238
}
239239
}
240-
240+
241241
// Periodic render tick to keep UI responsive
242242
_ = render_interval.tick() => {
243243
// Just continue to re-render
@@ -713,7 +713,7 @@ async fn poll_for_token_async(
713713
tx: mpsc::Sender<AsyncMessage>,
714714
) {
715715
tracing::debug!("Token polling started");
716-
716+
717717
let client = match cortex_engine::create_default_client() {
718718
Ok(c) => c,
719719
Err(e) => {
@@ -736,7 +736,11 @@ async fn poll_for_token_async(
736736
return;
737737
}
738738

739-
tracing::trace!("Polling for token (attempt {}/{})", attempt + 1, max_attempts);
739+
tracing::trace!(
740+
"Polling for token (attempt {}/{})",
741+
attempt + 1,
742+
max_attempts
743+
);
740744

741745
let response = match client
742746
.post(format!("{}/auth/device/token", API_BASE_URL))
@@ -756,7 +760,7 @@ async fn poll_for_token_async(
756760

757761
if status.is_success() {
758762
tracing::debug!("Token response received (success)");
759-
763+
760764
#[derive(serde::Deserialize)]
761765
struct TokenResponse {
762766
access_token: String,

0 commit comments

Comments
 (0)