Skip to content

Commit 5eb8f8d

Browse files
committed
Remove unsafe keywords where we don't need them
1 parent fcc3d12 commit 5eb8f8d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Sources/TestingMacros/ConditionMacro.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ extension ExitTestConditionMacro {
488488
in: TypeSyntax(IdentifierTypeSyntax(name: enumName)),
489489
ofKind: .exitTest,
490490
accessingWith: """
491-
unsafe Testing.ExitTest.__store(
491+
Testing.ExitTest.__store(
492492
\(idExpr),
493493
\(bodyThunkName),
494494
into: outValue,

Sources/TestingMacros/SuiteDeclarationMacro.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ public struct SuiteDeclarationMacro: MemberMacro, PeerMacro, Sendable {
148148
in: declaration.type,
149149
ofKind: .testDeclaration,
150150
accessingWith: """
151-
unsafe Testing.Test.__store(\(generatorName), into: outValue, asTypeAt: type)
151+
Testing.Test.__store(\(generatorName), into: outValue, asTypeAt: type)
152152
""",
153153
context: attributeInfo.testContentRecordFlags
154154
)

Sources/TestingMacros/TestDeclarationMacro.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ public struct TestDeclarationMacro: PeerMacro, Sendable {
475475
in: typeName,
476476
ofKind: .testDeclaration,
477477
accessingWith: """
478-
unsafe Testing.Test.__store(\(generatorName), into: outValue, asTypeAt: type)
478+
Testing.Test.__store(\(generatorName), into: outValue, asTypeAt: type)
479479
""",
480480
context: attributeInfo.testContentRecordFlags
481481
)

0 commit comments

Comments
 (0)