Open
Description
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
Labels
No labels