Implement unnecesary_filter_map lint
This commit is contained in:
@@ -614,6 +614,7 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry<'_>, conf: &Conf) {
|
||||
methods::SINGLE_CHAR_PATTERN,
|
||||
methods::STRING_EXTEND_CHARS,
|
||||
methods::TEMPORARY_CSTRING_AS_PTR,
|
||||
methods::UNNECESSARY_FILTER_MAP,
|
||||
methods::UNNECESSARY_FOLD,
|
||||
methods::USELESS_ASREF,
|
||||
methods::WRONG_SELF_CONVENTION,
|
||||
@@ -829,6 +830,7 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry<'_>, conf: &Conf) {
|
||||
methods::CLONE_ON_COPY,
|
||||
methods::FILTER_NEXT,
|
||||
methods::SEARCH_IS_SOME,
|
||||
methods::UNNECESSARY_FILTER_MAP,
|
||||
methods::USELESS_ASREF,
|
||||
misc::SHORT_CIRCUIT_STATEMENT,
|
||||
misc_early::REDUNDANT_CLOSURE_CALL,
|
||||
|
||||
Reference in New Issue
Block a user