apple / swift-asn1

An implementation of ASN.1 for Swift
https://swiftpackageindex.com/apple/swift-asn1/main/documentation/swiftasn1
Apache License 2.0
137 stars 27 forks source link

Update code to compile without issue when ExistentialAny enabled #63

Closed pseligman closed 1 month ago

pseligman commented 1 month ago

Motivation:

We should feel confident that we compile clean when built in an environment that has enabled upcoming Swift features.

When compiling swift-asn1 specifying .enableUpcomingFeature("ExistentialAny") there are some minor warnings emitted by ASN1.swift.

Modifications:

Minor code changes to address surfaced warnings

Result:

Better confidence that we don't break downstreams that compile this code with these upcoming features enabled.

Lukasa commented 1 month ago

@swift-server-bot add to allowlist