mirror of
https://github.com/Ferrite-iOS/Ferrite.git
synced 2026-03-11 17:45:40 +00:00
Extension: Remove Set warning
This will be removed in the future anyway. Signed-off-by: kingbri <bdashore3@proton.me>
This commit is contained in:
parent
d0f1f70d60
commit
1289c24fa5
1 changed files with 2 additions and 1 deletions
|
|
@ -7,7 +7,8 @@
|
|||
|
||||
import Foundation
|
||||
|
||||
extension Set: RawRepresentable where Element: Codable {
|
||||
// Silenced due to removal in later Ferrite versions
|
||||
extension Set: @retroactive RawRepresentable where Element: Codable {
|
||||
public init?(rawValue: String) {
|
||||
guard let data = rawValue.data(using: .utf8),
|
||||
let result = try? JSONDecoder().decode(Set<Element>.self, from: data)
|
||||
|
|
|
|||
Loading…
Reference in a new issue