From 33172e635c5c752d2e86f88356d7d21ecfde04c8 Mon Sep 17 00:00:00 2001 From: Matt <85322+mattmassicotte@users.noreply.github.com> Date: Thu, 11 Jul 2024 12:01:57 -0400 Subject: [PATCH] Using some for future ChimeKit compatibility --- Sources/ChimeRust/RustExtension.swift | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Sources/ChimeRust/RustExtension.swift b/Sources/ChimeRust/RustExtension.swift index efc85ad..4404adf 100644 --- a/Sources/ChimeRust/RustExtension.swift +++ b/Sources/ChimeRust/RustExtension.swift @@ -7,8 +7,10 @@ public final class RustExtension { private let lspService: LSPService public init(host: any HostProtocol) { - self.lspService = LSPService(host: host, - executableName: "rust-analyzer") + self.lspService = LSPService( + host: host, + executableName: "rust-analyzer" + ) } } @@ -20,7 +22,7 @@ extension RustExtension: ExtensionProtocol { } } - public var applicationService: ApplicationService { - return lspService + public var applicationService: some ApplicationService { + lspService } }