From df2e65fcaf2be200e446d04867d533f0d5441195 Mon Sep 17 00:00:00 2001 From: Bill Abt Date: Wed, 21 Jun 2017 20:24:21 -0400 Subject: [PATCH] More minor swiftlint warnings. --- Tests/LinuxMain.swift | 2 +- Tests/SocketTests/SocketTests.swift | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Tests/LinuxMain.swift b/Tests/LinuxMain.swift index 9df41d8..bf4de96 100644 --- a/Tests/LinuxMain.swift +++ b/Tests/LinuxMain.swift @@ -27,7 +27,7 @@ extension MutableCollection where Indices.Iterator.Element == Index { guard c > 1 else { return } srand(UInt32(time(nil))) - for (firstUnshuffled , unshuffledCount) in zip(indices, stride(from: c, to: 1, by: -1)) { + for (firstUnshuffled, unshuffledCount) in zip(indices, stride(from: c, to: 1, by: -1)) { let d: IndexDistance = numericCast(random() % numericCast(unshuffledCount)) guard d != 0 else { continue } diff --git a/Tests/SocketTests/SocketTests.swift b/Tests/SocketTests/SocketTests.swift index 237662a..8f02b60 100644 --- a/Tests/SocketTests/SocketTests.swift +++ b/Tests/SocketTests/SocketTests.swift @@ -1165,7 +1165,7 @@ class SocketTests: XCTestCase { print("Wrote '\(hello)' to socket...") - let buf = UnsafeMutablePointer.allocate(capacity: 19); + let buf = UnsafeMutablePointer.allocate(capacity: 19) buf.initialize(to: 0, count: 19) defer { @@ -1259,7 +1259,7 @@ class SocketTests: XCTestCase { try socket.write(from: "Hello again".data(using: .utf8)!, to: addr!) - let buf = UnsafeMutablePointer.allocate(capacity: 10); + let buf = UnsafeMutablePointer.allocate(capacity: 10) buf.initialize(to: 0, count: 10) // Save room for a null character...