Closed
Description
Writing to a file, I need CRLF format so I have no other choice than using write
with \r\n
.
warning: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead
--> src\main.rs:49:13
|
49 | write!(out, "{}\r\n", line)?;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: #[warn(clippy::write_with_newline)] on by default
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#write_with_newline