Skip to content

Commit

Permalink
Fix Swift warnings. (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
mbrandonw authored Mar 23, 2023
1 parent 609bde5 commit f52eee2
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import OrderedCollections

extension IdentifiedArray: Encodable where Element: Encodable {
@inlinable
public func encode(to encoder: Encoder) throws {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import OrderedCollections

extension IdentifiedArray: Collection {
@inlinable
@inline(__always)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import OrderedCollections

extension IdentifiedArray {
/// Creates a new array from the elements in the given sequence, which must not contain duplicate
/// ids.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import OrderedCollections

extension IdentifiedArray {
/// Append a new member to the end of the array, if the array doesn't already contain it.
///
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import OrderedCollections

extension IdentifiedArray: MutableCollection {
@inlinable
@inline(__always)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import OrderedCollections

@available(iOS 13, macOS 10.15, tvOS 13, watchOS 6, *)
extension IdentifiedArray: RangeReplaceableCollection
where Element: Identifiable, ID == Element.ID {
Expand Down

0 comments on commit f52eee2

Please sign in to comment.