Skip to content

Commit

Permalink
Fix writing closure type for timestamp shape by adding optional marke…
Browse files Browse the repository at this point in the history
…r. (#815)

Co-authored-by: Sichan Yoo <[email protected]>
  • Loading branch information
sichanyoo and Sichan Yoo authored Sep 11, 2024
1 parent 03e9d72 commit 76cfeff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/SmithyReadWrite/WritingClosure.swift
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public func listWritingClosure<T, Writer: SmithyWriter>(
}

@_spi(SmithyReadWrite)
public func timestampWritingClosure<Writer: SmithyWriter>(format: TimestampFormat) -> WritingClosure<Date, Writer> {
public func timestampWritingClosure<Writer: SmithyWriter>(format: TimestampFormat) -> WritingClosure<Date?, Writer> {
return { date, writer in
try writer.writeTimestamp(date, format: format)
}
Expand Down

0 comments on commit 76cfeff

Please sign in to comment.