Ver código fonte

Enable ExistentialAny for v2 (#1967)

Motivation:

The use of existentials can be made more obvious by enabling
the upcoming 'ExistentialAny' feature.

Modifications:

Enable 'ExistentialAny' and fix warnings.

Result:

Use of existentials is more obvious
George Barnett 1 ano atrás
pai
commit
1640fa3d02
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      Tests/GRPCProtobufTests/ProtobufCodingTests.swift

+ 1 - 1
Tests/GRPCProtobufTests/ProtobufCodingTests.swift

@@ -92,7 +92,7 @@ struct TestMessage: SwiftProtobuf.Message {
     return true
   }
 
-  func isEqualTo(message: SwiftProtobuf.Message) -> Bool {
+  func isEqualTo(message: any SwiftProtobuf.Message) -> Bool {
     return false
   }
 }