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.
1 parent 5f2b8e6 commit b20b8f1Copy full SHA for b20b8f1
clippy_lints/src/use_retain.rs
@@ -29,7 +29,7 @@ declare_clippy_lint! {
29
/// ### What it does
30
/// Checks for code to be replaced by `.retain()`.
31
/// ### Why is this bad?
32
- /// `.retain()` is simpler.
+ /// `.retain()` is simpler and avoids needless allocation.
33
/// ### Example
34
/// ```rust
35
/// let mut vec = vec![0, 1, 2];
0 commit comments