Skip to content

Commit 7964141

Browse files
committed
minor: fix compilation error on Swift 5.1
1 parent cbb9662 commit 7964141

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/SwiftBSON/JSON.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ extension JSON: ExpressibleByBooleanLiteral {
5656

5757
extension JSON: ExpressibleByArrayLiteral {
5858
internal init(arrayLiteral elements: JSON...) {
59-
self.value = .array(elements.map(\.value))
59+
self.value = .array(elements.map { $0.value })
6060
}
6161
}
6262

0 commit comments

Comments
 (0)