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

Dev: Don't wrap comments with cargo fmt #359

Merged
merged 1 commit into from
Sep 6, 2024
Merged

Conversation

notlesh
Copy link
Collaborator

@notlesh notlesh commented Sep 6, 2024

Problem: cargo fmt will mangle comments to make them fit on one line. This causes problems especially when code is commented out, but also seems to fight me when I want a multi-line comment to look a specific way.

Solution: remove wrap_comments = true from rustfmt.toml, allowing the default (true) to kick in.

Documentation: https://rust-lang.github.io/rustfmt/?version=v1.6.0&search=#wrap_comments

Issue Number: N/A

Type

  • feature
  • bugfix
  • dev (no functional changes, no API changes)
  • fmt (formatting, renaming)
  • build
  • docs
  • testing

Description

Breaking changes?

  • yes
  • no

@notlesh notlesh mentioned this pull request Sep 6, 2024
9 tasks
@odesenfans odesenfans merged commit 1cd8c21 into main Sep 6, 2024
6 checks passed
@odesenfans odesenfans deleted the notlesh/no-wrap-comments branch September 6, 2024 20:35
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