Skip to content

Commit f788f72

Browse files
committed
Update Serializing conformance with in context parameter
- Add in context: Void parameter to Domain.Label and Domain
1 parent 8f4ebd8 commit f788f72

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Sources/RFC 1123/RFC_1123.Domain.Label.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ extension RFC_1123.Domain.Label: UInt8.ASCII.Serializing {
109109
///
110110
/// - Parameter bytes: The ASCII byte representation of the label
111111
/// - Throws: `RFC_1123.Domain.Label.Error` if the bytes are malformed
112-
public init<Bytes: Collection>(ascii bytes: Bytes) throws(Error)
112+
public init<Bytes: Collection>(ascii bytes: Bytes, in context: Void) throws(Error)
113113
where Bytes.Element == UInt8 {
114114
guard let firstByte = bytes.first else {
115115
throw Error.empty

Sources/RFC 1123/RFC_1123.Domain.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ extension RFC_1123.Domain: UInt8.ASCII.Serializing {
130130
///
131131
/// - Parameter bytes: The ASCII byte representation of the domain
132132
/// - Throws: `RFC_1123.Domain.Error` if the bytes are malformed
133-
public init<Bytes: Collection>(ascii bytes: Bytes) throws(Error)
133+
public init<Bytes: Collection>(ascii bytes: Bytes, in context: Void) throws(Error)
134134
where Bytes.Element == UInt8 {
135135
guard !bytes.isEmpty else {
136136
throw Error.empty

0 commit comments

Comments
 (0)