History

thanks clippy

Sebastian Thiel committed 5 years ago

Commit ba9b3c21 parent 61816e56 files · +14 −19Browse files

Showing the changes to git-commitgraph/src/file/commit.rs (1 of 6 files). Show all

Unified · Split

git-commitgraph/src/file/commit.rs+1−1
@@ -123,7 +123,7 @@ impl<'a> Eq for Commit<'a> {} · 122 unmodified lines
123123
124124 impl<'a> PartialEq for Commit<'a> {
125125 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
127127 }
128128 }
129129