From 3cc4f1aa1b52a2f78c5b90834064631014d8a522 Mon Sep 17 00:00:00 2001 From: Christopher Fuller Date: Fri, 15 Mar 2024 09:37:01 -0700 Subject: [PATCH] Improve formatting --- .../Macros/StateMachineHashableMacro.swift | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Swift/Sources/StateMachineMacros/Macros/StateMachineHashableMacro.swift b/Swift/Sources/StateMachineMacros/Macros/StateMachineHashableMacro.swift index c5ac5de..0dc652a 100644 --- a/Swift/Sources/StateMachineMacros/Macros/StateMachineHashableMacro.swift +++ b/Swift/Sources/StateMachineMacros/Macros/StateMachineHashableMacro.swift @@ -45,19 +45,19 @@ public struct StateMachineHashableMacro: ExtensionMacro { .map { "value\($0)" } .joined(separator: ", ") return """ - case let .\(element.name.text)(\(associatedValues)): - return (\(associatedValues)) + case let .\(element.name.text)(\(associatedValues)): + return (\(associatedValues)) """ } else { return """ - case let .\(element.name.text)(value): - return (value) + case let .\(element.name.text)(value): + return (value) """ } } else { return """ - case .\(element.name.text): - return () + case .\(element.name.text): + return () """ } } @@ -72,13 +72,13 @@ public struct StateMachineHashableMacro: ExtensionMacro { var hashableIdentifier: HashableIdentifier { switch self { - \(raw: hashableIdentifierCases.joined(separator: "\n")) + \(raw: hashableIdentifierCases.joined(separator: "\n")) } } var associatedValue: Any { switch self { - \(raw: associatedValueCases.joined(separator: "\n")) + \(raw: associatedValueCases.joined(separator: "\n")) } } }