From f7127895e97d63ceb266cfea3edce557b2d17daf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB=20=D0=9A=D0=B0=D0=BF?= =?UTF-8?q?=D0=B5=D0=BB=D1=8C=D0=BA=D0=BE?= Date: Tue, 26 Dec 2023 12:56:47 +0300 Subject: [PATCH] d --- src/Bus.Receiver.swift | 4 ++-- src/VM.swift | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Bus.Receiver.swift b/src/Bus.Receiver.swift index dab632d..f1751be 100644 --- a/src/Bus.Receiver.swift +++ b/src/Bus.Receiver.swift @@ -7,8 +7,8 @@ public extension Bus { public init( _ keys: Set, _ handler: @escaping ((String, T) -> Void), - opt: [Option] = [], - { + opt: [Option] = [] + ) { Bus.receive(keys, handler, opt: opt, sub: &subscriptions) } } diff --git a/src/VM.swift b/src/VM.swift index b8c34f2..0e80f4d 100644 --- a/src/VM.swift +++ b/src/VM.swift @@ -3,7 +3,7 @@ import SwiftUI final class VM: ObservableObject { @Published var text = "a:" - + var subscriptions = [AnyCancellable]() init() {