Add a lint to warn about call to .*or(foo(..))

This commit is contained in:
mcarton
2016-01-16 18:47:45 +01:00
parent 604be945d2
commit c6604bb281
5 changed files with 90 additions and 4 deletions

View File

@@ -194,6 +194,7 @@ pub fn plugin_registrar(reg: &mut Registry) {
methods::OK_EXPECT,
methods::OPTION_MAP_UNWRAP_OR,
methods::OPTION_MAP_UNWRAP_OR_ELSE,
methods::OR_FUN_CALL,
methods::SEARCH_IS_SOME,
methods::SHOULD_IMPLEMENT_TRAIT,
methods::STR_TO_STRING,