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

chore(rustfmt): enable format_code_in_doc_comments #695

Merged

Conversation

Valentin271
Copy link
Member

This enables more consistently formatted code in doc comments, especially since ratatui heavily uses fluent setters.

See https://rust-lang.github.io/rustfmt/?version=v1.6.0#format_code_in_doc_comments

We're already using rustfmt nightly so this shouldn't change the pipelines or toolchains.

See the diff for the benefits this brings.

What do you guys think about that?

This enables more consistently formatted code in doc comments,
especially since ratatui heavily uses fluent setters.

See https://rust-lang.github.io/rustfmt/?version=v1.6.0#format_code_in_doc_comments
Copy link
Sponsor Member

@orhun orhun left a comment

Choose a reason for hiding this comment

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

I think this is a reasonable change, thanks!

@Valentin271 Valentin271 merged commit 910ad00 into ratatui-org:main Dec 16, 2023
33 checks passed
@Valentin271 Valentin271 deleted the chore/format-code-in-doc-comments branch December 16, 2023 12:01
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.

None yet

2 participants