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

Organize imports by adding rustfmt.toml #848

Closed
Farhad-Shabani opened this issue Sep 1, 2023 · 0 comments · Fixed by #849
Closed

Organize imports by adding rustfmt.toml #848

Farhad-Shabani opened this issue Sep 1, 2023 · 0 comments · Fixed by #849
Assignees
Labels
O: code-hygiene Objective: aims to improve code hygiene
Milestone

Comments

@Farhad-Shabani
Copy link
Member

Farhad-Shabani commented Sep 1, 2023

Background

Related to discussion here, I stumbled upon a nightly rust fmt option that allows to configure imports grouping and granularity. Therefore, should be able to keep imports organized effortlessly.

To match rust analyzer formatter with the command run by CI, We also can add the below line to the VS Code’s settings.json:

"rust-analyzer.rustfmt.extraArgs": ["+nightly"]
@Farhad-Shabani Farhad-Shabani added the O: code-hygiene Objective: aims to improve code hygiene label Sep 1, 2023
@github-project-automation github-project-automation bot moved this to 📥 To Do in ibc-rs Sep 1, 2023
@github-project-automation github-project-automation bot moved this from 📥 To Do to ✅ Done in ibc-rs Sep 5, 2023
@Farhad-Shabani Farhad-Shabani added this to the v0.45.0 milestone Sep 7, 2023
@Farhad-Shabani Farhad-Shabani self-assigned this Sep 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
O: code-hygiene Objective: aims to improve code hygiene
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant