Showing the changes to git-commitgraph/src/file/commit.rs (1 of 6 files). Show all
Unified · Split
| @@ -123,7 +123,7 @@ impl<'a> Eq for Commit<'a> {} · 122 unmodified lines | ||
| 123 | 123 | |
| 124 | 124 | impl<'a> PartialEq for Commit<'a> { |
| 125 | 125 | fn eq(&self, other: &Self) -> bool { |
| 126 | − self.file as *const File == other.file as *const File && self.pos == other.pos | |
| 126 | + std::ptr::eq(self.file, other.file) && self.pos == other.pos | |
| 127 | 127 | } |
| 128 | 128 | } |
| 129 | 129 | |