Apply swift-format changes and CI (#472)

Motivation:

Standardised formatting makes the project cleaner to look at and work
on.

Modifications:

Setup swift-format with the same settings as Swift-NIO

Result:

Common formatting throughout
This commit is contained in:
Peter Adams authored and GitHub committed 2024-10-29 13:09:54 +00:00
1 parent 93586110f2
commit 1118370ec4
125 files changed
+21869 -11457

No files matched your search

@@ -15,7 +15,6 @@
import NIOCore
import NIOHPACK
final class HPACKHeaderDecodingBenchmark {
private var headers: ByteBuffer
private let loopCount: Int
@@ -28,11 +27,10 @@ final class HPACKHeaderDecodingBenchmark {
}
}
extension HPACKHeaderDecodingBenchmark: Benchmark {
func setUp() throws { }
func setUp() throws {}
func tearDown() { }
func tearDown() {}
func run() throws -> Int {
for _ in 0..<self.loopCount {
@@ -44,7 +42,6 @@ extension HPACKHeaderDecodingBenchmark: Benchmark {
}
}
extension HPACKHeaders {
fileprivate var encoded: ByteBuffer {
var encoder = HPACKEncoder(allocator: .init())