Skip to content

Commit

Permalink
Specific existential any in generated code
Browse files Browse the repository at this point in the history
  • Loading branch information
WendellXY committed Aug 16, 2024
1 parent 2f7c082 commit de768ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/CodableKitMacros/CodableMacro.swift
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ extension CodableMacro {
signature: .init(
parameterClause: .init(
parametersBuilder: {
"from decoder: Decoder"
"from decoder: any Decoder"
}
),
effectSpecifiers: .init(throwsSpecifier: .keyword(.throws))
Expand Down Expand Up @@ -169,7 +169,7 @@ extension CodableMacro {
name: .identifier("encode"),
signature: .init(
parameterClause: FunctionParameterClauseSyntax {
"to encoder: Encoder"
"to encoder: any Encoder"
},
effectSpecifiers: .init(throwsSpecifier: .keyword(.throws))
)
Expand Down

0 comments on commit de768ed

Please sign in to comment.