We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 70457f6 + 8bf5a83 commit 7381944Copy full SHA for 7381944
clippy_lints/src/unused_io_amount.rs
@@ -34,11 +34,18 @@ declare_clippy_lint! {
34
/// ```rust,ignore
35
/// use std::io;
36
/// fn foo<W: io::Write>(w: &mut W) -> io::Result<()> {
37
- /// // must be `w.write_all(b"foo")?;`
38
/// w.write(b"foo")?;
39
/// Ok(())
40
/// }
41
/// ```
+ /// Use instead:
42
+ /// ```rust,ignore
43
+ /// use std::io;
44
+ /// fn foo<W: io::Write>(w: &mut W) -> io::Result<()> {
45
+ /// w.write_all(b"foo")?;
46
+ /// Ok(())
47
+ /// }
48
+ /// ```
49
#[clippy::version = "pre 1.29.0"]
50
pub UNUSED_IO_AMOUNT,
51
correctness,
0 commit comments