clippy 0.0.192

A bunch of helpful lints to avoid common pitfalls in Rust
1
2
3
4
5
6
7
8
9
10
if_chain! {
    if let Expr_::ExprCast(ref expr, ref cast_ty) = stmt.node;
    if let Ty_::TyPath(ref qp) = cast_ty.node;
    if match_qpath(qp, &["char"]);
    if let Expr_::ExprLit(ref lit) = expr.node;
    if let LitKind::Int(69, _) = lit.node;
    then {
        // report your lint here
    }
}