Fix Swift5 warnings

This commit is contained in:
Charles Magahern
2019-10-13 00:19:23 -07:00
parent 51d0faf556
commit 241248b1b0
5 changed files with 20 additions and 18 deletions
+7 -10
View File
@@ -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)
}
}