Skip to content

Apply Rust formatting and code style improvements across codebase - #165

Merged
mikemaccana merged 1 commit into
mainfrom
claude/epic-hawking-kutt2l
Sep 23, 2026
Merged

mikemaccana merged 1 commit into
mainfrom
claude/epic-hawking-kutt2l

Conversation

@mikemaccana

Copy link
Copy Markdown
Collaborator

This PR applies comprehensive Rust formatting and code style improvements across the entire codebase, primarily focusing on line length, import organization, and consistent indentation.

Summary

Applied automated formatting and manual code style improvements to align with Rust conventions and improve code readability. The changes are primarily cosmetic and do not alter functionality.

Key Changes

  • Line length and wrapping: Reformatted long function signatures and calls to fit within standard line length limits, breaking parameters across multiple lines for better readability
  • Import organization: Reorganized and consolidated imports in multiple files to follow a consistent pattern (e.g., moving solana_keypair::Keypair imports to group with other solana imports)
  • Indentation consistency: Fixed indentation in function bodies and match statements to use consistent spacing
  • Function signature formatting: Reformatted multi-parameter function definitions to place opening braces on new lines when signatures exceed line limits
  • Module organization: Reordered module declarations in mod.rs files for consistency (e.g., alphabetical ordering in some cases)
  • Trailing newlines: Added missing newlines at end of files

Files Modified

  • Multiple test files across token extensions, finance programs, and compression modules
  • Source instruction and library files
  • State and error definition files

Notable Details

  • Changes maintain 100% backward compatibility - no logic or behavior modifications
  • Formatting applied consistently across similar patterns throughout the codebase
  • Import statements reorganized to group related dependencies together

https://claude.ai/code/session_01W8VGVdmt1NegpG1Bwjr9nK

The anchor-v1 crates are absent from the root Cargo workspace (they share
package names with their anchor/ siblings), so the Rustfmt CI job never
sees them and they had drifted from rustfmt's output. This runs
`cargo fmt --all` inside each anchor-v1 project. Formatting only; no code
changes. The TypeScript in these projects was already Biome-clean.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01W8VGVdmt1NegpG1Bwjr9nK
@mikemaccana
mikemaccana merged commit c3c23db into main Sep 23, 2026
39 of 40 checks passed
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