Clippy lints / Deprecated
Clippy lint · Deprecated · checked with Clippy 0.1.99
clippy::unused_collect: Nothing
What it meansThis lint is deprecated. Nothing. This lint has been deprecated Remove it from your config; rustc or Clippy will warn that it no longer exists.
Does it matter?
Removed or merged into another lint. Remove it from your config.
Removed or merged into another lint. Remove it from your config.
How to fix it
Clippy does not fix this one automatically. Change the code by hand:
Turn it off, or on
Allow it where it does not fit your code, as narrowly as you can:
On one item
#[allow(clippy::unused_collect)]
fn my_function() { /* ... */ }Whole crate (Cargo.toml)
[lints.clippy]
unused_collect = "allow"One run
cargo clippy -- -A clippy::unused-collectThe [lints] table needs Rust 1.74 or newer. In a workspace, put it under [workspace.lints.clippy] and add [lints] workspace = true to each member.
Clippy's own documentation
What it does
Nothing. This lint has been deprecated
Deprecation reason
Iterator::collect is now marked as #[must_use].
From the Clippy lint list (0.1.99), part of the Rust project, MIT or Apache-2.0. Official entry.
Related lints
- unsafe_vector_initializationNothing
- unstable_as_mut_sliceNothing
- unstable_as_sliceNothing
- wrong_pub_self_conventionNothing
All 847 Clippy lints · Rust compiler errors · Cargo.toml checker
Up next
Related lintclippy::unsafe_vector_initializationNothingRead it next →Did this answer your question?