This commit is contained in:
Daniel Wagner-Hall
2018-09-02 23:42:07 +01:00
parent 368223a341
commit 939d842ea1
+1 -2
View File
@@ -53,8 +53,7 @@ fn check_expr(&mut self, cx: &LateContext<'a, 'tcx>, expr: &'tcx Expr) {
// explicitly name the type.
if let ExprKind::Call(ref method, ref _args) = expr.node;
if let ExprKind::Path(ref p) = method.node;
if let QPath::Resolved(ref ty, ref _path) = p;
if ty.is_some();
if let QPath::Resolved(Some(_ty), _path) = p;
then {
return;
}