From 1c15428339094c344ae149c8e9027b6474abd9eb Mon Sep 17 00:00:00 2001 From: Kit Freddura Date: Sun, 2 Oct 2016 13:39:28 -0700 Subject: [PATCH] removed formatting changes --- clippy_lints/src/lib.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/clippy_lints/src/lib.rs b/clippy_lints/src/lib.rs index fd42d91f41d..4fe9f0b25be 100644 --- a/clippy_lints/src/lib.rs +++ b/clippy_lints/src/lib.rs @@ -106,6 +106,7 @@ pub mod neg_multiply; pub mod new_without_default; pub mod no_effect; pub mod non_expressive_names; +pub mod ok_if_let; pub mod open_options; pub mod overflow_check_conditional; pub mod panic; @@ -254,6 +255,7 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry) { reg.register_late_lint_pass(box let_if_seq::LetIfSeq); reg.register_late_lint_pass(box eval_order_dependence::EvalOrderDependence); reg.register_late_lint_pass(box missing_doc::MissingDoc::new()); + reg.register_late_lint_pass(box ok_if_let::OkIfLetPass); reg.register_lint_group("clippy_restrictions", vec![ arithmetic::FLOAT_ARITHMETIC, @@ -405,6 +407,7 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry) { no_effect::UNNECESSARY_OPERATION, non_expressive_names::MANY_SINGLE_CHAR_NAMES, open_options::NONSENSICAL_OPEN_OPTIONS, + ok_if_let::IF_LET_SOME_RESULT, overflow_check_conditional::OVERFLOW_CHECK_CONDITIONAL, panic::PANIC_PARAMS, precedence::PRECEDENCE,