Skip to content
Permalink
Browse files

Address PR comments by @kzaher

  • Loading branch information...
freak4pc authored and kzaher committed Apr 7, 2019
1 parent 2045c13 commit cce64b8861d496e466dda050a136c1a4467bc078
@@ -17,6 +17,7 @@ DerivedData
*.hmap
*.ipa
*.xcuserstate
*.o

timeline.xctimeline

Binary file not shown.
Binary file not shown.
@@ -128,13 +128,15 @@ public enum Diff {
private struct OptimizedIdentity<E: Hashable>: Hashable {
func hash(into hasher: inout Hasher) {
hasher.combine(identity.pointee)
hasher.combine(hash)
}

let hash: Int
let identity: UnsafePointer<E>

init(_ identity: UnsafePointer<E>) {
self.identity = identity
self.hash = identity.pointee.hashValue
}

static func == (lhs: OptimizedIdentity<E>, rhs: OptimizedIdentity<E>) -> Bool {

0 comments on commit cce64b8

Please sign in to comment.
You can’t perform that action at this time.