Skip to content

Commit d4d4e59

Browse files
feat: use default not-equal method
1 parent 8fa57b2 commit d4d4e59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/attributes/derive.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ impl<T: PartialEq> PartialEq for Foo<T> {
2626
}
2727

2828
fn ne(&self, other: &Foo<T>) -> bool {
29-
self.a != other.a || self.b != other.b
29+
!self.eq(other)
3030
}
3131
}
3232
```

0 commit comments

Comments
 (0)