Change lint name
From `suggest_print` to `explicit_write`
This commit is contained in:
parent
a46bf3f456
commit
aeeb38dab1
4 changed files with 7 additions and 7 deletions
|
|
@ -1,4 +1,4 @@
|
|||
#![warn(suggest_print)]
|
||||
#![warn(explicit_write)]
|
||||
|
||||
|
||||
fn stdout() -> String {
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ error: use of `write!(stdout(), ...).unwrap()`. Consider using `print!` instead
|
|||
16 | write!(std::io::stdout(), "test").unwrap();
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: `-D suggest-print` implied by `-D warnings`
|
||||
= note: `-D explicit-write` implied by `-D warnings`
|
||||
|
||||
error: use of `write!(stderr(), ...).unwrap()`. Consider using `eprint!` instead
|
||||
--> $DIR/suggest_print.rs:17:9
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue