Skip to content

Commit

Permalink
Update swift format (#691)
Browse files Browse the repository at this point in the history
  • Loading branch information
Davidde94 authored Feb 19, 2022
1 parent 3726eb0 commit 82c191e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ let package = Package(
.package(url: "https://github.com/apple/swift-nio", from: "2.34.0"),
.package(url: "https://github.com/apple/swift-nio-ssl", from: "2.16.0"),
.package(url: "https://github.com/apple/swift-log", from: "1.4.0"),
.package(url: "https://github.com/nicklockwood/SwiftFormat", .exact("0.48.3")),
.package(url: "https://github.com/nicklockwood/SwiftFormat", .exact("0.49.4")),
.package(url: "https://github.com/apple/swift-standard-library-preview.git", .exact("0.0.3")),
.package(url: "https://github.com/apple/swift-collections.git", .upToNextMajor(from: "1.0.0")),
],
Expand Down
2 changes: 1 addition & 1 deletion Sources/NIOIMAPCore/ModifiedUTF7.swift
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public enum ModifiedUTF7 {
/// - throws: An `OddByteCountError` if `buffer` contains an off number of bytes.
/// - returns: A `String` that can be used to e.g. display to a user.
static func decode(_ buffer: ByteBuffer) throws -> String {
var string: String = ""
var string = ""
string.reserveCapacity(buffer.readableBytes)

var buffer = buffer
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class CommandRoundtripHandler_PromiseTests: XCTestCase {

override func setUp() {
let logger = Logger(label: "test")
channel = EmbeddedChannel(handler: CommandRoundtripHandler(logger: logger))
self.channel = EmbeddedChannel(handler: CommandRoundtripHandler(logger: logger))
}

override func tearDown() {
Expand Down
2 changes: 1 addition & 1 deletion Tests/NIOIMAPCoreTests/Grammar/CoreTypealiasesTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class CoreTypealiasesTests: EncodeTestClass {}

extension CoreTypealiasesTests {
func testNil() {
let expected: String = "NIL"
let expected = "NIL"
let input: String? = nil
let size = self.testBuffer.writeNString(input)
XCTAssertEqual(size, expected.utf8.count)
Expand Down

0 comments on commit 82c191e

Please sign in to comment.