Skip to content

Commit 83c6d40

Browse files
Replace map with array init
1 parent 5170a2d commit 83c6d40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/SwiftSyntaxMacroExpansionTest/BodyMacroTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ final class BodyMacroTests: XCTestCase {
178178
} else {
179179
statements
180180
}
181-
return body.map(\.self)
181+
return Array(body)
182182
}
183183
}
184184

0 commit comments

Comments
 (0)