Run rustfmt over the lending Anchor v1 copy - #162
Merged
Merged
Conversation
The root Rust Lint workflow runs `cargo fmt --check` on the root workspace only, and the `anchor-v1/` copies are deliberately outside it, so this copy's formatting drifted unnoticed. This is `cargo fmt` run in finance/lending/anchor-v1 and nothing else: line wrapping only, no code changes. The workspace and its tests compile, and `cargo fmt --check` there is now clean. Claude-Session: https://claude.ai/code/session_01Bb9YgXxuvSJThr3TjtDoca
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Rust Lint workflow runs
cargo fmt --checkon the root workspace only. Theanchor-v1/copies are deliberately kept outside that workspace, so the formatting offinance/lending/anchor-v1drifted without CI noticing.This PR is the output of
cargo fmtrun infinance/lending/anchor-v1, and nothing else. The changes are line wrapping only, mostly long calls in the test helpers split across lines. No code changes.Verification
cargo fmt --checkinfinance/lending/anchor-v1fails onmainand is clean on this branch.cargo test --no-runin that workspace compiles the program and every test target.Not in this PR
The same drift exists elsewhere. Running
cargo fmt --checkin each of the other 55anchor-v1/workspaces onmainfails in 35 of them, including the escrow, betting market, order book and token fundraiser copies underfinance/. CI checks none of them. Formatting them and adding acargo fmt --checkstep for theanchor-v1/workspaces would each be a separate change.🤖 Generated with Claude Code
https://claude.ai/code/session_01Bb9YgXxuvSJThr3TjtDoca