Skip to content

Commit 3040894

Browse files
authored
Mark Bundle(_dsoHandle:) call in macro expansion with unsafe
1 parent c37addb commit 3040894

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/FoundationMacros/BundleMacro.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public struct BundleMacro: SwiftSyntaxMacros.ExpressionMacro, Sendable {
2525
#elseif SWIFT_BUNDLE_LOOKUP_HELPER_AVAILABLE
2626
return Bundle(for: __BundleLookupHelper.self)
2727
#else
28-
return Bundle(_dsoHandle: #dsohandle) ?? .main
28+
return unsafe Bundle(_dsoHandle: #dsohandle) ?? .main
2929
#endif
3030
}()
3131
"""

0 commit comments

Comments
 (0)