Created
February 15, 2017 19:13
-
-
Save michaelevensen/b24535b5974588116628ece4d9095379 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Conform to Hashable | |
extension ChargeConnector: Hashable { | |
var hashValue: Int { | |
return id.hashValue ^ id.hashValue | |
} | |
static func == (lhs: ChargeConnector, rhs: ChargeConnector) -> Bool { | |
return lhs.id == rhs.id | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment