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

Convert line endings to LF #815

Merged
merged 2 commits into from
Oct 10, 2022
Merged

Convert line endings to LF #815

merged 2 commits into from
Oct 10, 2022

Conversation

spenserblack
Copy link
Collaborator

This should result in more reasonable diffs of future contributions
where a contributor's text editor would automatically convert line
endings.

See #812, #813


We may want to see if a linter/formatter can check this. TBH I'm surprised this
isn't the default behavior of cargo fmt -- --check.

This should result in more reasonable diffs of future contributions
where a contributor's text editor would automatically convert line
endings.

See #812, #813
@o2sh
Copy link
Owner

o2sh commented Oct 10, 2022

TBH I'm surprised this isn't the default behavior of cargo fmt -- --check.

I think we need to add the following .rustfmt.toml

# This file defines the Rust style for automatic reformatting.
# See also https://rust-lang.github.io/rustfmt

# Rust language edition to be used by the parser.
edition = "2021"

# Line endings will be converted to \n.
newline_style = "Unix"

Enforces Unix-style newlines.

Co-authored-by: Ossama Hjaji <ossama-hjaji@live.fr>
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