Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit b20b8f1

Browse files
kyoto7250llogiq
andcommitted
Update clippy_lints/src/use_retain.rs
Co-authored-by: llogiq <bogusandre@gmail.com>
1 parent 5f2b8e6 commit b20b8f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/use_retain.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ declare_clippy_lint! {
2929
/// ### What it does
3030
/// Checks for code to be replaced by `.retain()`.
3131
/// ### Why is this bad?
32-
/// `.retain()` is simpler.
32+
/// `.retain()` is simpler and avoids needless allocation.
3333
/// ### Example
3434
/// ```rust
3535
/// let mut vec = vec![0, 1, 2];

0 commit comments

Comments
 (0)