From 07e9b6bd8ff5f9e2cb11bd46ec6f75850b225208 Mon Sep 17 00:00:00 2001 From: Paul Young Date: Tue, 6 Oct 2015 12:48:33 -0700 Subject: [PATCH] Update operator definitions to match those in the standard library. --- OptionalEquatableCollection/Array.swift | 5 ++--- OptionalEquatableCollection/Dictionary.swift | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) 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