Test format by youknowone · Pull Request #1 · RustPython/RustPython-test · GitHub
Skip to content

Test format#1

Open
youknowone wants to merge 2 commits into
RustPython:mainfrom
youknowone:test-format
Open

Test format#1
youknowone wants to merge 2 commits into
RustPython:mainfrom
youknowone:test-format

Conversation

@youknowone

@youknowone youknowone commented Nov 25, 2025

Copy link
Copy Markdown
Member

Summary by CodeRabbit

  • Style
    • Internal code formatting improvements for enhanced maintainability and readability.

✏️ Tip: You can customize this high-level summary in your review settings.

@coderabbitai

coderabbitai Bot commented Nov 25, 2025

Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (1)
crates/vm/src/stdlib/ast/other.rs (1)

20-25: Consider formatting consistency in match arms.

The match arms on lines 20-23 are reflowed across multiple lines while lines 24-25 remain on single lines. For consistency, consider applying the same formatting style to all arms, or verify this aligns with your project's rustfmt configuration.

Example consistent formatting (all on single lines):

.map(|flag| match flag {
    bytecode::ConversionFlag::None => Self::None,
    bytecode::ConversionFlag::Str => Self::Str,
    bytecode::ConversionFlag::Ascii => Self::Ascii,
    bytecode::ConversionFlag::Repr => Self::Repr,
})
📜 Review details

Configuration used: Path: .coderabbit.yml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 592bce6 and bf1cd24.

📒 Files selected for processing (1)
  • crates/vm/src/stdlib/ast/other.rs (1 hunks)
🔇 Additional comments (1)
crates/vm/src/stdlib/ast/other.rs (1)

17-18: Approve formatting adjustment to .and_then() call.

The closure formatting change improves readability by breaking the chain across lines. No functional impact.

@github-actions

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant