From 4bb9192468c1a8be57f46b7d6fd4f561c88b2195 Mon Sep 17 00:00:00 2001 From: stephencelis Date: Thu, 8 Dec 2022 19:45:20 +0000 Subject: [PATCH] Run swift-format --- Sources/Parsing/Conversion.swift | 2 +- Sources/Parsing/Parser.swift | 2 +- Sources/Parsing/ParserPrinter.swift | 2 +- Sources/swift-parsing-benchmark/Date.swift | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Sources/Parsing/Conversion.swift b/Sources/Parsing/Conversion.swift index b6e9c97386..a8f5929279 100644 --- a/Sources/Parsing/Conversion.swift +++ b/Sources/Parsing/Conversion.swift @@ -4,7 +4,7 @@ /// /// Useful in transforming the output of a parser-printer into some new type while preserving /// printability via ``Parser/map(_:)-18m9d``. - @rethrows public protocol Conversion { + @rethrows public protocol Conversion { // The type of values this conversion converts from. associatedtype Input diff --git a/Sources/Parsing/Parser.swift b/Sources/Parsing/Parser.swift index 41e71a02fd..eb8d0630eb 100644 --- a/Sources/Parsing/Parser.swift +++ b/Sources/Parsing/Parser.swift @@ -24,7 +24,7 @@ /// others can be implemented efficiently on substrings because they simply move the start and end /// indices, whereas their implementation on strings must make a copy of the string with the /// characters removed. - @rethrows public protocol Parser { + @rethrows public protocol Parser { /// The type of values this parser parses from. associatedtype Input diff --git a/Sources/Parsing/ParserPrinter.swift b/Sources/Parsing/ParserPrinter.swift index 3d3a4ae9e5..2c9d5b41b3 100644 --- a/Sources/Parsing/ParserPrinter.swift +++ b/Sources/Parsing/ParserPrinter.swift @@ -5,7 +5,7 @@ /// > in reverse. As such, new values should be prepended to the front of the input. This allows /// > parsers to check that the already-printed values match what is expected for any given /// > ``Parser``. - @rethrows public protocol ParserPrinter: Parser { + @rethrows public protocol ParserPrinter: Parser { /// Attempts to print a well-structured piece of data into something more nebulous. /// /// - Parameters diff --git a/Sources/swift-parsing-benchmark/Date.swift b/Sources/swift-parsing-benchmark/Date.swift index af50857c16..b96358da29 100644 --- a/Sources/swift-parsing-benchmark/Date.swift +++ b/Sources/swift-parsing-benchmark/Date.swift @@ -9,7 +9,7 @@ import Parsing /// parse fractional seconds and time zone offsets automatically, and it will parse to the /// nanosecond, while the formatters do not parse beyond the millisecond. let dateSuite = BenchmarkSuite(name: "Date") { suite in - #if swift(>=5.7) + #if swift(>=5.7) let timeDelim = OneOf { "T".utf8 "t".utf8