Skip to content

Commit ce4af3b

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

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Sources/RFC 1035/RFC_1035.Domain.Label.swift

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

Sources/RFC 1035/RFC_1035.Domain.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ extension RFC_1035.Domain: UInt8.ASCII.Serializing {
117117
///
118118
/// - Parameter bytes: The ASCII byte representation of the domain
119119
/// - Throws: `RFC_1035.Domain.Error` if the bytes are malformed
120-
public init<Bytes: Collection>(ascii bytes: Bytes) throws(Error) where Bytes.Element == UInt8 {
120+
public init<Bytes: Collection>(ascii bytes: Bytes, in context: Void) throws(Error) where Bytes.Element == UInt8 {
121121
// Empty check
122122
guard !bytes.isEmpty else {
123123
throw Error.empty

0 commit comments

Comments
 (0)