diff --git a/Sources/PubNub/Helpers/WeakBox.swift b/Sources/PubNub/Helpers/WeakBox.swift index 45b43b64..21f3f120 100644 --- a/Sources/PubNub/Helpers/WeakBox.swift +++ b/Sources/PubNub/Helpers/WeakBox.swift @@ -74,6 +74,6 @@ extension WeakSet: Collection { } func index(after index: Set>.Index) -> Set>.Index { - elements.lockedRead { $0 }.index(after: index) + elements.lockedRead { $0.index(after: index) } } }