Skip to content

Commit a81afdc

Browse files
committed
Add alloc::vec::Vec::recycle
1 parent 8aeee44 commit a81afdc

File tree

2 files changed

+2
-0
lines changed
  • clippy_lints/src/needless_conversion_for_trait
  • clippy_utils/src

2 files changed

+2
-0
lines changed

clippy_lints/src/needless_conversion_for_trait/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ const IGNORED_INHERENT_FUNCTIONS: &[ConfPath<SymPath<'static>, false>] = conf_pa
172172
&[sym::alloc, sym::vec, sym::Vec, sym::into_chunks],
173173
&[sym::alloc, sym::vec, sym::Vec, sym::into_flattened],
174174
&[sym::alloc, sym::vec, sym::Vec, sym::leak],
175+
&[sym::alloc, sym::vec, sym::Vec, sym::recycle],
175176
&[sym::alloc, sym::vec, sym::Vec, sym::spare_capacity_mut],
176177
&[sym::str, sym::trim],
177178
&[sym::str, sym::trim_ascii],

clippy_utils/src/sym.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,7 @@ generate! {
302302
read_to_string,
303303
read_unaligned,
304304
read_volatile,
305+
recycle,
305306
redundant_imports,
306307
redundant_pub_crate,
307308
regex,

0 commit comments

Comments
 (0)