diff --git a/OptionalEquatableCollection/Array.swift b/OptionalEquatableCollection/Array.swift index 07f5610..4916e2b 100644 --- a/OptionalEquatableCollection/Array.swift +++ b/OptionalEquatableCollection/Array.swift @@ -1,6 +1,5 @@ -// Mark: - Equatable - -public func == (lhs: Array?, rhs: Array?) -> Bool { +@warn_unused_result +public func == (lhs: Array?, rhs: Array?) -> Bool { switch (lhs, rhs) { case let (.Some(lhs), .Some(rhs)): return lhs == rhs diff --git a/OptionalEquatableCollection/Dictionary.swift b/OptionalEquatableCollection/Dictionary.swift index 0f352fc..def281c 100644 --- a/OptionalEquatableCollection/Dictionary.swift +++ b/OptionalEquatableCollection/Dictionary.swift @@ -1,6 +1,5 @@ -// Mark: - Equatable - -public func == (lhs: Dictionary?, rhs: Dictionary?) -> Bool { +@warn_unused_result +public func == (lhs: [Key: Value]?, rhs: [Key: Value]?) -> Bool { switch (lhs, rhs) { case let (.Some(lhs), .Some(rhs)): return lhs == rhs