@@ -70,7 +70,9 @@ public enum Mach {
7070 ///
7171 /// The body block may optionally return something, which will then be
7272 /// returned to the caller of withBorrowedName.
73- public func withBorrowedName< ReturnType> ( body: ( mach_port_name_t ) -> ReturnType ) -> ReturnType {
73+ public func withBorrowedName< ReturnType> (
74+ body: ( mach_port_name_t ) -> ReturnType
75+ ) -> ReturnType {
7476 return body ( _name)
7577 }
7678
@@ -117,7 +119,8 @@ public enum Mach {
117119 ///
118120 /// This function will abort if the rights could not be created.
119121 /// Callers may assert that valid rights are always returned.
120- public static func allocatePortRightPair( ) -> ( receive: Mach . Port < Mach . ReceiveRight > , send: Mach . Port < Mach . SendRight > ) {
122+ public static func allocatePortRightPair( ) ->
123+ ( receive: Mach . Port < Mach . ReceiveRight > , send: Mach . Port < Mach . SendRight > ) {
121124 var name = mach_port_name_t ( MACH_PORT_NULL)
122125 let secret = mach_port_context_t ( arc4random ( ) )
123126 withUnsafeMutablePointer ( to: & name) { name in
@@ -173,7 +176,8 @@ public extension Mach.Port where RightType == Mach.ReceiveRight {
173176 ///
174177 /// After this function completes, the Mach.Port is destroyed and no longer
175178 /// usable.
176- __consuming func relinquish( ) -> ( name: mach_port_name_t , context: mach_port_context_t ) {
179+ __consuming func relinquish( ) ->
180+ ( name: mach_port_name_t , context: mach_port_context_t ) {
177181 return ( name: _name, context: _context)
178182 }
179183
@@ -205,7 +209,9 @@ public extension Mach.Port where RightType == Mach.ReceiveRight {
205209 ///
206210 /// The body block may optionally return something, which will then be
207211 /// returned to the caller of withBorrowedName.
208- func withBorrowedName< ReturnType> ( body: ( mach_port_name_t , mach_port_context_t ) -> ReturnType ) -> ReturnType {
212+ func withBorrowedName< ReturnType> (
213+ body: ( mach_port_name_t , mach_port_context_t ) -> ReturnType
214+ ) -> ReturnType {
209215 body ( _name, _context)
210216 }
211217
0 commit comments