Skip to content

Commit 54366b9

Browse files
committed
fix: swiftformat handling
1 parent 420d7f6 commit 54366b9

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

.swiftformat

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# SwiftFormat Configuration
22

3-
# CRITICAL: Do not remove 'self' in closures
4-
# Swift 6 strict concurrency requires explicit 'self.' to make capture semantics clear
5-
--self insert
3+
# CRITICAL: Disable redundantSelf rule for Swift 6 strict concurrency compatibility
4+
# Swift 6 requires explicit 'self.' in closures to make capture semantics clear
5+
--disable redundantSelf
66

7-
# Preserve existing formatting for these
7+
# Preserve existing formatting
88
--ifdef no-indent
99
--indentcase false
1010
--extensionacl on-declarations

Sources/ElevenLabs/Conversation.swift

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -717,14 +717,14 @@ public final class Conversation: ObservableObject, RoomDelegate {
717717
// MARK: - Testing Hooks
718718

719719
#if DEBUG
720-
@MainActor
721-
func _testing_handleIncomingEvent(_ event: IncomingEvent) async {
722-
await handleIncomingEvent(event)
723-
}
720+
@MainActor
721+
func _testing_handleIncomingEvent(_ event: IncomingEvent) async {
722+
await handleIncomingEvent(event)
723+
}
724724

725-
func _testing_setState(_ newState: ConversationState) {
726-
state = newState
727-
}
725+
func _testing_setState(_ newState: ConversationState) {
726+
state = newState
727+
}
728728
#endif
729729

730730
private func handleIncomingData(_ data: Data) async {
@@ -1008,8 +1008,8 @@ public final class Conversation: ObservableObject, RoomDelegate {
10081008

10091009
// MARK: - RoomDelegate
10101010

1011-
public extension Conversation {
1012-
nonisolated func room(
1011+
extension Conversation {
1012+
public nonisolated func room(
10131013
_: Room, participant: Participant, didUpdateIsSpeaking isSpeaking: Bool,
10141014
) {
10151015
if participant is RemoteParticipant {
@@ -1026,7 +1026,7 @@ public extension Conversation {
10261026
}
10271027
}
10281028

1029-
nonisolated func room(_: Room, participantDidJoin participant: RemoteParticipant) {
1029+
public nonisolated func room(_: Room, participantDidJoin participant: RemoteParticipant) {
10301030
participant.add(delegate: self)
10311031
}
10321032
}

0 commit comments

Comments
 (0)