Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix a couple of bugs in cargo-sort #1631

Merged
merged 1 commit into from
Feb 8, 2024
Merged

Conversation

Twey
Copy link
Contributor

@Twey Twey commented Feb 6, 2024

Motivation

Trailing commas are good :)

This PR previously added a tomlfmt.toml that configured the multiline_trailing_comma feature. Unfortunately, this exposed a bug in cargo-sort that meant it was impossible to format the workspace Cargo.toml to its liking. Furthermore, on inspection of the documentation, it turns out that multiline_trailing_comma should be on by default.

I added a PR fixing these bugs, and the test that should have caught them.

Proposal

Point our CI's cargo sort to my branch.

Test Plan

CI

Release Plan

Invisible to users.

Links

@Twey Twey force-pushed the 02-06-tomlfmt branch 2 times, most recently from e8d8203 to 0257367 Compare February 7, 2024 15:35
@Twey Twey changed the title Add a tomlfmt.toml file with better defaults for cargo-sort Fix a couple of bugs in cargo-sort Feb 7, 2024
Copy link
Contributor

@ma2bd ma2bd left a comment

Choose a reason for hiding this comment

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

nice :)

@ma2bd ma2bd merged commit be62673 into linera-io:main Feb 8, 2024
6 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.

2 participants