Open
Description
Problem
Generally people want line endings to be consistent. When Cargo modifies a Cargo.toml
, it may insert \n
independent of what line ending type is used
Steps
- Have a
Cargo.toml
file with\r\n
line endings - Run
cargo add serde
- See that
\n
line endings are mixed in
Possible Solution(s)
Check if \r\n
is present and then convert any stray \n
s to \r\n
Notes
See also #14857 as cargo-script has another area where this can be hit
Version