]> git.proxmox.com Git - rustc.git/blobdiff - src/tools/clippy/clippy_lints/src/explicit_write.rs
New upstream version 1.26.0+dfsg1
[rustc.git] / src / tools / clippy / clippy_lints / src / explicit_write.rs
index 7ea96cabfac8a2b636a2b535fc5f6f9aad0a56d6..bad5bbd84224ee71fbf2d314e4460ffcdb693e63 100644 (file)
@@ -15,9 +15,9 @@ use utils::opt_def_id;
 /// // this would be clearer as `eprintln!("foo: {:?}", bar);`
 /// writeln!(&mut io::stderr(), "foo: {:?}", bar).unwrap();
 /// ```
-declare_lint! {
+declare_clippy_lint! {
     pub EXPLICIT_WRITE,
-    Warn,
+    complexity,
     "using the `write!()` family of functions instead of the `print!()` family \
      of functions, when using the latter would work"
 }