Skip to content

Commit

Permalink
feat: use default not-equal method
Browse files Browse the repository at this point in the history
  • Loading branch information
Tiger0202 committed Sep 6, 2022
1 parent 8fa57b2 commit d4d4e59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/attributes/derive.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ impl<T: PartialEq> PartialEq for Foo<T> {
}

fn ne(&self, other: &Foo<T>) -> bool {
self.a != other.a || self.b != other.b
!self.eq(other)
}
}
```
Expand Down

0 comments on commit d4d4e59

Please sign in to comment.