Repository navigation
check_fmt --fix: never drop code when rustfmt moves lines - #104
Merged
Merged
Conversation
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
Member
Author
|
@WoggleSL/review approve |
There was a problem hiding this comment.
Approved by @R3disme.
Checks
- ✅ Build linux-x86_64
- ✅ Build windows-x86_64
- ❌ dispatch (not required)
- ❌ wiki (not required)
- ✅ retake screenshots (not required)
- ✅ changes (not required)
- ✅ codeql (actions) (not required)
- ✅ sync (not required)
- ✅ dispatch (not required)
- ✅ wiki (not required)
- ✅ changes (not required)
- ⏳ codeql (rust) (not required)
- ⏳ preview screenshots (not required)
- ✅ screenshots out of date (not required)
- ✅ screenshots out of date (not required)
- ✅ Build macos-universal (not required)
- ✅ secrets (not required)
- ❌ typos (not required)
- ✅ Build flatpak-x86_64 (not required)
- ✅ fmt (not required)
- ⏳ clippy (not required)
- ✅ Release (not required)
- ⏳ test (not required)
- ✅ cargo-deny (not required)
- ✅ unsafe (not required)
- ✅ dependency-review (not required)
- ✅ workflows (not required)
- ✅ translations (not required)
- ✅ flag-lists (not required)
- ✅ CodeQL (not required)
Change: 1 files, +57 / -7, 1 commit(s) by @R3disme
Merges into: main without conflicts
WoggleSL Review · requested by @R3disme from a comment
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.
tools/check_fmt.py --fixdeleted fourpub modlines fromsrc/widget.rsin #100 (field, key_chip, segmented, switch), so those widgets stopped being compiled. #103 adds them back.Cause: rustfmt sorts
mod/useitems. A move shows up as two hunks, a removal and an insertion further down.--fixonly applied hunks touching lines the branch changed, so it applied the removal and skipped the insertion.Fix:
cargo fmton that file.Tested: I re-created the #100 situation (the four lines inserted after
pub mod badge;). The check reported it,--fixmoved the lines into sorted order instead of deleting them, and the check then passed.Wiki: not needed - developer tool only.