Skip to content

Commit 76cfeff

Browse files
sichanyooSichan Yoo
andauthored
Fix writing closure type for timestamp shape by adding optional marker. (#815)
Co-authored-by: Sichan Yoo <[email protected]>
1 parent 03e9d72 commit 76cfeff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/SmithyReadWrite/WritingClosure.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public func listWritingClosure<T, Writer: SmithyWriter>(
4747
}
4848

4949
@_spi(SmithyReadWrite)
50-
public func timestampWritingClosure<Writer: SmithyWriter>(format: TimestampFormat) -> WritingClosure<Date, Writer> {
50+
public func timestampWritingClosure<Writer: SmithyWriter>(format: TimestampFormat) -> WritingClosure<Date?, Writer> {
5151
return { date, writer in
5252
try writer.writeTimestamp(date, format: format)
5353
}

0 commit comments

Comments
 (0)