diff --git a/Sources/CBOR/Decoder/Scanner/CBORScanner+Results.swift b/Sources/CBOR/Decoder/Scanner/CBORScanner+Results.swift index 4a71aec..fda8871 100644 --- a/Sources/CBOR/Decoder/Scanner/CBORScanner+Results.swift +++ b/Sources/CBOR/Decoder/Scanner/CBORScanner+Results.swift @@ -96,7 +96,13 @@ extension CBORScanner { let location = map[mapIndex + 3] let length = map[mapIndex + 4] let slice = reader.slice(location..<(location + length)) - return DataRegion(type: type, argument: argument, childCount: childCount, mapOffset: mapIndex, data: slice) + return DataRegion( + type: type, + argument: argument, + childCount: childCount, + mapOffset: mapIndex, + data: slice + ) } } diff --git a/Sources/CBOR/Encoder/EncodingOptions.swift b/Sources/CBOR/Encoder/EncodingOptions.swift index 2b2c564..550a446 100644 --- a/Sources/CBOR/Encoder/EncodingOptions.swift +++ b/Sources/CBOR/Encoder/EncodingOptions.swift @@ -9,7 +9,7 @@ public struct EncodingOptions { /// Force encoded maps to use string keys even when integer keys are available. public let forceStringKeys: Bool - + /// Methods for encoding dates. public enum DateStrategy { /// Encodes dates as `ISO8601` date strings under tag `0`. diff --git a/Sources/CBOR/MajorType.swift b/Sources/CBOR/MajorType.swift index e15f68f..6d4e9ca 100644 --- a/Sources/CBOR/MajorType.swift +++ b/Sources/CBOR/MajorType.swift @@ -6,7 +6,8 @@ // /// Represents a major type as described by the CBOR specification. -@frozen public enum MajorType: UInt8, Sendable, Hashable, Equatable { +@frozen +public enum MajorType: UInt8, Sendable, Hashable, Equatable { case uint = 0 case nint = 1 case bytes = 2