Lint types with fn new() -> Self and no Default impl
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user