From 8d33b92f82ddfdc5ba64eb59a2d80132874621a3 Mon Sep 17 00:00:00 2001 From: Hunter Bown Date: Sun, 26 Apr 2026 17:51:23 -0500 Subject: [PATCH] style(tests): rustfmt collapses short let-binding pairs --- crates/tui/src/tui/ui/tests.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/crates/tui/src/tui/ui/tests.rs b/crates/tui/src/tui/ui/tests.rs index a1a8cd9e..47015638 100644 --- a/crates/tui/src/tui/ui/tests.rs +++ b/crates/tui/src/tui/ui/tests.rs @@ -563,15 +563,13 @@ fn context_usage_does_not_drop_when_reported_shrinks_after_multi_round_turn() { // Simulate a multi-round turn that summed two rounds' input_tokens // (e.g., 200k + 210k from a long thinking + tool-call sequence). app.last_prompt_tokens = Some(410_000); - let (_, _, percent_after_multi_round) = - context_usage_snapshot(&app).expect("usage available"); + let (_, _, percent_after_multi_round) = context_usage_snapshot(&app).expect("usage available"); // Now the next turn is a single round on the same conversation — // reported drops to one round's worth even though the actual context // hasn't shrunk. app.last_prompt_tokens = Some(15_000); - let (_, _, percent_after_single_round) = - context_usage_snapshot(&app).expect("usage available"); + let (_, _, percent_after_single_round) = context_usage_snapshot(&app).expect("usage available"); // The displayed % should reflect the conversation size (estimated // from api_messages), NOT the wildly variable reported value.