Skip to content

Commit 2b47724

Browse files
committed
no opaque types
1 parent e89fd6a commit 2b47724

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tools/swift-plugin-server/Sources/swift-plugin-server/WasmMessageHandler.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ final class WasmInterceptingMessageHandler<Base: PluginMessageHandler>: PluginMe
3030
guard libraryPath.hasSuffix(".wasm") else { break }
3131
let libraryFilePath = FilePath(libraryPath)
3232
do {
33-
loadedWasmPlugins[moduleName] = try defaultWasmPlugin.init(path: libraryFilePath)
33+
loadedWasmPlugins[moduleName] = try DefaultWasmPlugin(path: libraryFilePath)
3434
} catch {
3535
return .loadPluginLibraryResult(
3636
loaded: false,
@@ -110,5 +110,3 @@ protocol WasmPlugin {
110110

111111
func handleMessage(_ json: [UInt8]) throws -> [UInt8]
112112
}
113-
114-
private var defaultWasmPlugin: (some WasmPlugin).Type { DefaultWasmPlugin.self }

0 commit comments

Comments
 (0)