diff --git a/Sources/ComposableArchitectureMacros/ObservableStateMacro.swift b/Sources/ComposableArchitectureMacros/ObservableStateMacro.swift index 81dd49f26f15..5fd3d9cd3fd8 100644 --- a/Sources/ComposableArchitectureMacros/ObservableStateMacro.swift +++ b/Sources/ComposableArchitectureMacros/ObservableStateMacro.swift @@ -431,12 +431,10 @@ extension ObservableStateMacro: ExtensionMacro { } return [ - ( - """ + (""" extension \(raw: type.trimmedDescription): \(raw: qualifiedConformanceName), \ Observation.Observable {} - """ as DeclSyntax - ) + """ as DeclSyntax) .cast(ExtensionDeclSyntax.self) ] } diff --git a/Tests/ComposableArchitectureTests/ObserveTests.swift b/Tests/ComposableArchitectureTests/ObserveTests.swift index e13f1973567d..4f9ca8269e47 100644 --- a/Tests/ComposableArchitectureTests/ObserveTests.swift +++ b/Tests/ComposableArchitectureTests/ObserveTests.swift @@ -33,10 +33,9 @@ } } -@Perceptible -class Model { - var count = 0 -} + @Perceptible + class Model { + var count = 0 + } #endif -