fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1if let StmtKind::Local(local) = stmt.kind 2 && let Some(init) = local.init 3 && let ExprKind::Call(func, args) = init.kind 4 && let ExprKind::Path(ref qpath) = func.kind 5 && match_qpath(qpath, &["{{root}}", "std", "cmp", "min"]) 6 && args.len() == 2 7 && let ExprKind::Lit(ref lit) = args[0].kind 8 && let LitKind::Int(3, LitIntType::Unsuffixed) = lit.node 9 && let ExprKind::Lit(ref lit1) = args[1].kind 10 && let LitKind::Int(4, LitIntType::Unsuffixed) = lit1.node 11 && let PatKind::Wild = local.pat.kind 12{ 13 // report your lint here 14}