Skip to content

Commit f36dc09

Browse files
unhappychoiceclaude
andcommitted
style: fix cargo fmt formatting issues
- Apply proper line breaking for long expressions - Ensure all code passes cargo fmt --check and cargo clippy -- -D warnings 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent e66487a commit f36dc09

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/game/stage_renderer.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,8 @@ impl StageRenderer {
270270
}
271271

272272
// Check if this character is in a comment
273-
let is_in_comment = params.display_comment_ranges
273+
let is_in_comment = params
274+
.display_comment_ranges
274275
.iter()
275276
.any(|&(start, end)| i >= start && i < end);
276277

@@ -325,7 +326,8 @@ impl StageRenderer {
325326
}
326327

327328
// Add post-context lines (read-only, dimmed)
328-
let end_line_number = params.challenge
329+
let end_line_number = params
330+
.challenge
329331
.and_then(|c| c.end_line)
330332
.unwrap_or(start_line_number);
331333
for (ctx_idx, post_line) in params.code_context.post_context.iter().enumerate() {

0 commit comments

Comments
 (0)