ASTPrinter: Turn on explicit any printing for everything and remove the option to disable it

This commit is contained in:
Anthony Latsis
2023-05-05 03:18:02 +03:00
parent 01086bc8b5
commit 7f6d3bcd41
85 changed files with 1258 additions and 1255 deletions

View File

@@ -11,14 +11,14 @@ struct Response: Codable {
case title
}
init(from decoder: Decoder) throws {
init(from decoder: any Decoder) throws {
let container: KeyedDecodingContainer<Response.Page.Result.CodingKeys> = try decoder.container(keyedBy: Response.Page.Result.CodingKeys.self)
self.title = try container.decode(String.self, forKey: Response.Page.Result.CodingKeys.title)
}
func encode(to encoder: Encoder) throws {
func encode(to encoder: any Encoder) throws {
var container = encoder.container(keyedBy: Response.Page.Result.CodingKeys.self)
try container.encode(self.title, forKey: Response.Page.Result.CodingKeys.title)