Skip to content

Commit

Permalink
feat: do not specify not-equal at all
Browse files Browse the repository at this point in the history
  • Loading branch information
Tiger0202 committed Sep 9, 2022
1 parent d4d4e59 commit c5fb1b3
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/attributes/derive.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@ impl<T: PartialEq> PartialEq for Foo<T> {
fn eq(&self, other: &Foo<T>) -> bool {
self.a == other.a && self.b == other.b
}

fn ne(&self, other: &Foo<T>) -> bool {
!self.eq(other)
}
}
```

Expand Down

0 comments on commit c5fb1b3

Please sign in to comment.