Skip to content

Commit 126981a

Browse files
compnerdLukasa
andauthored
Crypto: explicitly type the array slice (#122)
Without the explicit typing, the build fails with recent toolchain builds expecting the type to conform to an incorrect type. This repairs the build. Co-authored-by: Cory Benfield <[email protected]>
1 parent 57a0c7d commit 126981a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Crypto/ASN1/PEMDocument.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ extension ASN1 {
3434
//
3535
// This function attempts to parse this string as a PEM document, and returns the discriminator type
3636
// and the base64 decoded bytes.
37-
var lines = pemString.split { $0.isNewline }[...]
37+
var lines: ArraySlice<Substring> = pemString.split { $0.isNewline }[...]
3838
guard let first = lines.first, let last = lines.last else {
3939
throw CryptoKitASN1Error.invalidPEMDocument
4040
}

0 commit comments

Comments
 (0)