Drop redundant Hashable implementation
This commit is contained in:
parent
e12e0b3051
commit
02d04185d3
|
@ -46,14 +46,6 @@ public struct IPv4Settings: Codable, Equatable, CustomStringConvertible {
|
||||||
self.gateway = gateway
|
self.gateway = gateway
|
||||||
}
|
}
|
||||||
|
|
||||||
// MARK: Hashable
|
|
||||||
|
|
||||||
public func hash(into hasher: inout Hasher) {
|
|
||||||
hasher.combine(destination)
|
|
||||||
hasher.combine(mask)
|
|
||||||
hasher.combine(gateway)
|
|
||||||
}
|
|
||||||
|
|
||||||
// MARK: CustomStringConvertible
|
// MARK: CustomStringConvertible
|
||||||
|
|
||||||
public var description: String {
|
public var description: String {
|
||||||
|
|
|
@ -46,14 +46,6 @@ public struct IPv6Settings: Codable, Equatable, CustomStringConvertible {
|
||||||
self.gateway = gateway
|
self.gateway = gateway
|
||||||
}
|
}
|
||||||
|
|
||||||
// MARK: Hashable
|
|
||||||
|
|
||||||
public func hash(into hasher: inout Hasher) {
|
|
||||||
hasher.combine(destination)
|
|
||||||
hasher.combine(prefixLength)
|
|
||||||
hasher.combine(gateway)
|
|
||||||
}
|
|
||||||
|
|
||||||
// MARK: CustomStringConvertible
|
// MARK: CustomStringConvertible
|
||||||
|
|
||||||
public var description: String {
|
public var description: String {
|
||||||
|
|
Loading…
Reference in New Issue