Skip to content

Commit fc09eb5

Browse files
committed
Fix dogfood problem
1 parent 0475eae commit fc09eb5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

clippy_lints/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry) {
255255
reg.register_late_lint_pass(box let_if_seq::LetIfSeq);
256256
reg.register_late_lint_pass(box eval_order_dependence::EvalOrderDependence);
257257
reg.register_late_lint_pass(box missing_doc::MissingDoc::new());
258-
reg.register_late_lint_pass(box ok_if_let::OkIfLetPass);
258+
reg.register_late_lint_pass(box ok_if_let::Pass);
259259

260260
reg.register_lint_group("clippy_restrictions", vec![
261261
arithmetic::FLOAT_ARITHMETIC,

clippy_lints/src/ok_if_let.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@ declare_lint! {
2323
}
2424

2525
#[derive(Copy, Clone)]
26-
pub struct OkIfLetPass;
26+
pub struct Pass;
2727

28-
impl LintPass for OkIfLetPass {
28+
impl LintPass for Pass {
2929
fn get_lints(&self) -> LintArray {
3030
lint_array!(IF_LET_SOME_RESULT)
3131
}
3232
}
3333

34-
impl LateLintPass for OkIfLetPass {
34+
impl LateLintPass for Pass {
3535
fn check_expr(&mut self, cx: &LateContext, expr: &Expr) {
3636
if_let_chain! {[ //begin checking variables
3737
let ExprMatch(ref op, ref body, ref source) = expr.node, //test if expr is a match

0 commit comments

Comments
 (0)