Lint types with fn new() -> Self and no Default impl

This commit is contained in:
mcarton
2016-03-01 16:25:15 +01:00
parent 204c12c99e
commit d7129f560d
8 changed files with 132 additions and 29 deletions

View File

@@ -253,7 +253,7 @@ fn check_to_owned(cx: &LateContext, expr: &Expr, other: &Expr, left: bool, op: S
None => return,
};
if !implements_trait(cx, arg_ty, partial_eq_trait_id, Some(vec![other_ty])) {
if !implements_trait(cx, arg_ty, partial_eq_trait_id, vec![other_ty]) {
return;
}