-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
C-bugCategory: Clippy is not doing the correct thingCategory: Clippy is not doing the correct thinggood first issueThese issues are a good way to get started with ClippyThese issues are a good way to get started with Clippy
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
schneiderfelipe
Metadata
Metadata
Assignees
Labels
C-bugCategory: Clippy is not doing the correct thingCategory: Clippy is not doing the correct thinggood first issueThese issues are a good way to get started with ClippyThese issues are a good way to get started with Clippy