From 0b5d0c3f0a8fbe0567799e600f3a6ccca7d177f8 Mon Sep 17 00:00:00 2001 From: Khan Winter <35942988+thecoolwinter@users.noreply.github.com> Date: Mon, 1 Sep 2025 08:12:31 -0500 Subject: [PATCH] fix:lint --- Sources/CBOR/Decoder/Scanner/CBORScanner+Results.swift | 8 +++++++- Sources/CBOR/Encoder/EncodingOptions.swift | 2 +- Sources/CBOR/MajorType.swift | 3 ++- 3 files changed, 10 insertions(+), 3 deletions(-) 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 -- 2.51.2