Skip to content

rustfmt section might cause issues with git's autocrlf #4

Open
@epage

Description

@epage

rustfmt's default newline style is unix.

For people using git's autocrlf, this will cause problems. They'll checkout the code with crlf, and rustfmt will change it to lf and things might get sad.

cobalt is where this was first notice.

Two options

  • Encourage people to override it to native in rustfmt.tonl
  • Tell git / editors to use native for rust
    • .editorconfig
    • .gitattributes

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions