Add utils helper for filtering out type/lifetime parameters on generics #3787
Labels
C-enhancement
Category: Enhancement of lints, like adding more cases or adding help messages
good-first-issue
These issues are a good way to get started with Clippy
See https://github.com/rust-lang/rust-clippy/pull/3786/files , we have a lot of code that does something like
params.args.iter().filter_map(|arg| match arg { GenericArg::Lifetime(lt) => Some(lt), _ => None }
We should probably have a helper function that returns an iterator for these, placed in
utils
. Probably something like:The text was updated successfully, but these errors were encountered: