Skip to content

Commit f69104b

Browse files
committed
[OrderedSet] Don't set a default value for the primary initializer's second argument
This will hopefully prevent issues like the one fixed in the previous commit from reoccurring in the future.
1 parent e4f62c1 commit f69104b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/OrderedCollections/OrderedSet/OrderedSet.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ public struct OrderedSet<Element> where Element: Hashable
247247
@inlinable
248248
internal init(
249249
_uniqueElements: ContiguousArray<Element>,
250-
_ table: _HashTable? = nil
250+
_ table: _HashTable?
251251
) {
252252
self.__storage = table?._storage
253253
self._elements = _uniqueElements

0 commit comments

Comments
 (0)