Skip to content

Instantly share code, notes, and snippets.

@michaelevensen
Created February 15, 2017 19:13
Show Gist options
  • Save michaelevensen/b24535b5974588116628ece4d9095379 to your computer and use it in GitHub Desktop.
Save michaelevensen/b24535b5974588116628ece4d9095379 to your computer and use it in GitHub Desktop.
// 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