From c2754166761d411260442ca566bc67f9f37ae19b Mon Sep 17 00:00:00 2001 From: Michael Rebello Date: Thu, 29 Jun 2023 22:00:00 -0700 Subject: [PATCH] Fix new Swift 6 warning Fixes this warning: > Generic parameter 'Output' shadows generic parameter from outer scope with the same name; this is an error in Swift 6 --- Libraries/Connect/Implementation/ProtocolClient.swift | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Libraries/Connect/Implementation/ProtocolClient.swift b/Libraries/Connect/Implementation/ProtocolClient.swift index b914d703..150f0a32 100644 --- a/Libraries/Connect/Implementation/ProtocolClient.swift +++ b/Libraries/Connect/Implementation/ProtocolClient.swift @@ -306,9 +306,7 @@ extension ProtocolClient: ProtocolClientInterface { } private extension StreamResult { - func toTypedResult(using codec: Codec) - throws -> StreamResult - { + func toTypedResult(using codec: Codec) throws -> StreamResult { switch self { case .complete(let code, let error, let trailers): return .complete(code: code, error: error, trailers: trailers)