Skip to content

Commit b1d7ccc

Browse files
committed
SwiftMacros: Remove unnecessary .as() cast from DistributedResolvableMacro.
Resolves the following warning: ``` warning: 'as' is deprecated: This cast will always succeed ```
1 parent 28e33af commit b1d7ccc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Macros/Sources/SwiftMacros/DistributedResolvableMacro.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ extension DistributedResolvableMacro {
174174

175175
// The $Stub is always generic over the actor system: $Stub<ActorSystem>
176176
var primaryTypeParams: [String] = primaryAssociatedTypes.map {
177-
$0.as(PrimaryAssociatedTypeSyntax.self)!.name.trimmed.text
177+
$0.name.trimmed.text
178178
}
179179

180180
// Don't duplicate the ActorSystem type parameter if it already was declared

0 commit comments

Comments
 (0)