Compare commits

...

2 Commits

Author SHA1 Message Date
Hannes Oud 25b8a50d92 Fix swiftlint warnings 2018-01-12 15:30:53 +01:00
Hannes Oud 44df2e4271 Update .swiftlint.yml 2018-01-12 15:30:41 +01:00
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -12,10 +12,10 @@ large_tuple:
warning: 3
opt_in_rules:
- empty_count
- overridden_super_call
- explicit_init
- closure_spacing
- operator_usage_whitespace
- overridden_super_call
- prohibited_super_call
- nimble_operator
- redundant_nil_coalescing
@@ -12,7 +12,7 @@
///
/// - known: the raw value is known and could be assigned to a known strong value type
/// - unknown: the raw value is unknown and is stored as is
public enum KnownOrUnknown<Known: RawRepresentable> where Known.RawValue: Hashable {
public enum KnownOrUnknown<Known: RawRepresentable> where Known.RawValue: Hashable {
public typealias Unknown = Known.RawValue
case known(value: Known)
@@ -51,7 +51,7 @@ extension KnownOrUnknown: Hashable {
return self.rawValue.hashValue
}
public static func ==(lhs: KnownOrUnknown<Known>, rhs: KnownOrUnknown<Known>) -> Bool {
public static func == (lhs: KnownOrUnknown<Known>, rhs: KnownOrUnknown<Known>) -> Bool {
return lhs.rawValue == rhs.rawValue
}
}