Skip to content

Commit

Permalink
Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
antonmes committed May 12, 2016
1 parent b914116 commit b570a9a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Sources/SQL/Core/ConnectionProtocol.swift
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public extension ConnectionProtocol {
try self.init(ConnectionInfo(uri))
}

public func transaction(block: Void throws -> Void) throws {
public func transaction(block: (Void) throws -> Void) throws {
try begin()

do {
Expand All @@ -96,7 +96,7 @@ public extension ConnectionProtocol {
}
}

public func withSavePointNamed(_ name: String, block: Void throws -> Void) throws {
public func withSavePointNamed(_ name: String, block: (Void) throws -> Void) throws {
try createSavePointNamed(name)

do {
Expand Down
4 changes: 2 additions & 2 deletions Sources/SQL/Core/ResultProtocol.swift
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ public protocol RowIteratorProtocol: IteratorProtocol {
public struct RowIterator: RowIteratorProtocol {
public typealias Element = Row

let block: Void -> Element?
let block: (Void) -> Element?
var index: Int = 0

init(block: Void -> Element?) {
init(block: (Void) -> Element?) {
self.block = block
}

Expand Down

0 comments on commit b570a9a

Please sign in to comment.