Skip to content

Commit

Permalink
fixing Swift 5.9 issues
Browse files Browse the repository at this point in the history
  • Loading branch information
leogdion committed Apr 29, 2024
1 parent 927cecc commit f90237f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 4 additions & 1 deletion Tests/OptionsTests/Mocks/MockCollectionEnum.swift
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ import Options
}
#else
// swiftlint:disable identifier_name
internal enum MockCollectionEnum: Int, MappedValueCollectionRepresented {
internal enum MockCollectionEnum: Int, MappedValueCollectionRepresented, Codable {
case a
case b
case c
Expand All @@ -54,5 +54,8 @@ import Options
"c",
"d"
]
static var codingOptions: CodingOptions = .default
}

typealias MockCollectionEnumSet = EnumSet<MockCollectionEnum>
#endif
4 changes: 3 additions & 1 deletion Tests/OptionsTests/Mocks/MockDictionaryEnum.swift
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ import Options
}
#else
// swiftlint:disable identifier_name
internal enum MockDictionaryEnum: Int, MappedValueDictionaryRepresented {
internal enum MockDictionaryEnum: Int, MappedValueDictionaryRepresented, Codable {
case a = 2
case b = 5
case c = 6
Expand All @@ -53,4 +53,6 @@ import Options
12: "d"
]
}

typealias MockDictionaryEnumSet = EnumSet<MockDictionaryEnum>
#endif

0 comments on commit f90237f

Please sign in to comment.