Fix Swift5 warnings
This commit is contained in:
@@ -61,17 +61,14 @@ class WemoDevice: Hashable
|
||||
}
|
||||
}
|
||||
|
||||
var hashValue: Int
|
||||
func hash(into hasher: inout Hasher)
|
||||
{
|
||||
var hash: Int = 0x0
|
||||
hash ^= self.name.hash
|
||||
hash ^= self.host.hash
|
||||
hash ^= self.model.hash
|
||||
hash ^= self.state.hashValue
|
||||
hash ^= self.type.hashValue
|
||||
hash ^= self.serial.hashValue
|
||||
|
||||
return hash
|
||||
hasher.combine(self.name)
|
||||
hasher.combine(self.host)
|
||||
hasher.combine(self.model)
|
||||
hasher.combine(self.state)
|
||||
hasher.combine(self.type)
|
||||
hasher.combine(self.serial)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user