update to the rust-PR that unblocks clippy
This commit is contained in:
parent
4a05fbba3e
commit
778ce4dfd3
66 changed files with 217 additions and 217 deletions
|
|
@ -24,8 +24,8 @@ declare_lint! {
|
|||
#[derive(Copy, Clone)]
|
||||
pub struct Pass;
|
||||
|
||||
impl LateLintPass for Pass {
|
||||
fn check_expr<'a, 'tcx: 'a>(&mut self, cx: &LateContext<'a, 'tcx>, expr: &'tcx Expr) {
|
||||
impl<'a, 'tcx> LateLintPass<'a, 'tcx> for Pass {
|
||||
fn check_expr(&mut self, cx: &LateContext<'a, 'tcx>, expr: &'tcx Expr) {
|
||||
// call to .map()
|
||||
if let ExprMethodCall(name, _, ref args) = expr.node {
|
||||
if &*name.node.as_str() == "map" && args.len() == 2 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue